diff options
author | maho <maho@FreeBSD.org> | 2003-08-02 02:03:03 +0000 |
---|---|---|
committer | maho <maho@FreeBSD.org> | 2003-08-02 02:03:03 +0000 |
commit | 6b2899a651fddd8a53638027bdd4e1faa86b6339 (patch) | |
tree | 774ef776e12cb6a7a8694d75fad544b99dedea64 /net/netsaint-plugins | |
parent | d6ce9f68fb972509c783eb57f6f4b5548ac6fae5 (diff) | |
download | FreeBSD-ports-6b2899a651fddd8a53638027bdd4e1faa86b6339.zip FreeBSD-ports-6b2899a651fddd8a53638027bdd4e1faa86b6339.tar.gz |
Fix build on gcc-3.3.x
Submitted by: Simon Barner <barner@in.tum.de>
Diffstat (limited to 'net/netsaint-plugins')
-rw-r--r-- | net/netsaint-plugins/files/patch-check_by_ssh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/netsaint-plugins/files/patch-check_by_ssh.c b/net/netsaint-plugins/files/patch-check_by_ssh.c index f89ad7d..68de5fa 100644 --- a/net/netsaint-plugins/files/patch-check_by_ssh.c +++ b/net/netsaint-plugins/files/patch-check_by_ssh.c @@ -1,11 +1,11 @@ ---- plugins/check_by_ssh.c.orig Fri Jun 21 11:19:56 2002 -+++ plugins/check_by_ssh.c Fri Jun 21 11:54:25 2002 +--- plugins/check_by_ssh.c.orig Mon Apr 23 09:43:11 2001 ++++ plugins/check_by_ssh.c Tue Jul 22 05:05:52 2003 @@ -191,7 +191,7 @@ if (commands>1) remotecmd=strscat(remotecmd,";echo STATUS CODE: $?;"); - if (strlen (remotecmd) <= 1) -+ if (remotecmd==NULL) ++ if ((remotecmd==NULL) || (strlen (remotecmd) <= 1)) usage ("No remotecmd\n"); comm = ssprintf(comm,"%s %s '%s'",comm,hostname,remotecmd); @@ -23,7 +23,7 @@ #define OPTIONS "\ --H <host> [-P port] [-f] [-y] [-t timeout] [-i identity]\n -+-H <host> -C <command> [-fyv] [-P port] [-t timeout] [-i identity]\n ++-H <host> -C <command> [-fyv] [-P port] [-t timeout] [-i identity]\n\ [-l user] [-n name] [-s servicelist] [-O outputfile]" void print_usage(void) |