[X2Go-Commits] [x2gobroker] 01/01: src/x2gobroker-{agent, ssh}.c: fix compile warnings/errors.
git-admin at x2go.org
git-admin at x2go.org
Tue Nov 13 16:22:26 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gobroker.
commit 07d24877afbee8f9bb081ee585354e92a6866424
Author: Mihai Moldovan <ionic at ionic.de>
Date: Tue Nov 13 16:22:13 2018 +0100
src/x2gobroker-{agent,ssh}.c: fix compile warnings/errors.
---
debian/changelog | 1 +
src/x2gobroker-agent.c | 1 +
src/x2gobroker-ssh.c | 2 ++
3 files changed, 4 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d1fd388..cd0d7f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -121,6 +121,7 @@ x2gobroker (0.0.4.0-0x2go1) UNRELEASED; urgency=medium
general return clause to make compilers happy.
- Makefile: make sure that we actually append our custom CFLAGS and
LDFLAGS values, even if passed in through the make command line.
+ - src/x2gobroker-{agent,ssh}.c: fix compile warnings/errors.
* x2gobroker.spec:
- Add %debug_package macro when debugging is to be enabled, hoping that it
will actually generate proper debuginfo (and -source) sub packages
diff --git a/src/x2gobroker-agent.c b/src/x2gobroker-agent.c
index 45f908a..60e7c5b 100644
--- a/src/x2gobroker-agent.c
+++ b/src/x2gobroker-agent.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
+#include <string.h>
int main( int argc, char *argv[] ) {
char x2gobrokeragent[] = TRUSTED_BINARY;
diff --git a/src/x2gobroker-ssh.c b/src/x2gobroker-ssh.c
index 14554a7..ede5781 100644
--- a/src/x2gobroker-ssh.c
+++ b/src/x2gobroker-ssh.c
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <errno.h>
#include <stdio.h>
+#include <string.h>
int main( int argc, char *argv[] ) {
char x2gobrokerssh[] = TRUSTED_BINARY;
@@ -30,6 +31,7 @@ int main( int argc, char *argv[] ) {
argv[0] = "x2gobroker";
// execute the script, running with user-rights of this binary
int ret = execv(x2gobrokerssh, argv);
+ int saved_errno = errno;
if (ret) {
fprintf (stderr, "unable to execute script '");
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
More information about the x2go-commits
mailing list