From b0a9fa9a4afbc392d926eb2f0ef6455a7833ee38 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 22 Apr 2022 23:26:35 +0200 Subject: [PATCH] [platform] uniform I/O calls in macOS `printenv`; formatting GitOrigin-RevId: 847f6056e2b360ce368ba0bf0bb91e682c2bb3e7 --- native/MacEnvReader/printenv.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/native/MacEnvReader/printenv.c b/native/MacEnvReader/printenv.c index 58dde2be8f05..ae153e03a4dc 100644 --- a/native/MacEnvReader/printenv.c +++ b/native/MacEnvReader/printenv.c @@ -1,16 +1,12 @@ -// Copyright 2000-2021 JetBrains s.r.o. and contributors. -// Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. #include -int main(int argc __attribute__((unused)), - const char **argv __attribute__((unused)), - const char **env) { - +int main(int argc __attribute__((unused)), const char **argv __attribute__((unused)), const char **env) { const char **v = env; while (*v != NULL) { fputs(*v, stdout); - putc('\0', stdout); + fputc('\0', stdout); v++; }