[X2Go-Commits] [nx-libs] 276/429: nxcomp/Children.cpp: reformat code
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:48 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 2e3fe61d11b606ab5be561e30649984240e90954
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Sun Feb 28 21:48:55 2021 +0100
nxcomp/Children.cpp: reformat code
drop some superflous empty lines to make code more compact.
---
nxcomp/src/Children.cpp | 11 -----------
1 file changed, 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
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list