aboutsummaryrefslogtreecommitdiff
path: root/nxcomp
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-02-28 21:48:55 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-08 08:07:02 +0200
commit2e3fe61d11b606ab5be561e30649984240e90954 (patch)
tree828492d9d1ad5a80eb8b7aa6302249f65eb49fa8 /nxcomp
parent31beb51df199d1fec9cec2afe2c7c3684728bc2a (diff)
downloadnx-libs-2e3fe61d11b606ab5be561e30649984240e90954.tar.gz
nx-libs-2e3fe61d11b606ab5be561e30649984240e90954.tar.bz2
nx-libs-2e3fe61d11b606ab5be561e30649984240e90954.zip
nxcomp/Children.cpp: reformat code
drop some superflous empty lines to make code more compact.
Diffstat (limited to 'nxcomp')
-rw-r--r--nxcomp/src/Children.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/nxcomp/src/Children.cpp b/nxcomp/src/Children.cpp
index abfcbf2f9..829c6fbad 100644
--- a/nxcomp/src/Children.cpp
+++ b/nxcomp/src/Children.cpp
@@ -291,21 +291,16 @@ int NXTransDialog(const char *caption, const char *message,
strcpy(newPath, "/usr/NX/bin:/opt/NX/bin:/usr/local/NX/bin:");
#ifdef __APPLE__
-
// FIXME: missing length limitation!
strcat(newPath, "/Applications/NX Client for OSX.app/Contents/MacOS:");
-
#endif
#ifdef __CYGWIN32__
-
// FIXME: missing length limitation!
strcat(newPath, ".:");
-
#endif
int newLength = strlen(newPath);
-
char *oldPath = getenv("PATH");
// FIXME: check if strncat would be better here
@@ -327,17 +322,11 @@ int NXTransDialog(const char *caption, const char *message,
//
#ifdef __sun
-
char newEnv[DEFAULT_STRING_LIMIT + 5];
-
sprintf(newEnv,"PATH=%s", newPath);
-
putenv(newEnv);
-
#else
-
setenv("PATH", newPath, 1);
-
#endif
}
else