summaryrefslogtreecommitdiffstats
path: root/ctdb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-11-19 14:31:29 +0100
committerStefan Metzmacher <metze@samba.org>2009-12-16 08:03:48 +0100
commit42648556a63f8598830df832721a6b719bbe1769 (patch)
tree81ef2fd9f2626b2e84f994bb51019d393bb2763f /ctdb
parenta04fecb1c23779cd2ac9da2b87fbaa58ccbef52f (diff)
downloadsamba-42648556a63f8598830df832721a6b719bbe1769.tar.gz
samba-42648556a63f8598830df832721a6b719bbe1769.tar.xz
samba-42648556a63f8598830df832721a6b719bbe1769.zip
Fix all warnings in source3 with gcc4.3. Jeremy. (cherry picked from samba commit 07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00)
Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be ctdb commit e4d49c182e12c2d429d0414209cc2c8ccc19dc91)
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/lib/tdb/tools/tdbtool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ctdb/lib/tdb/tools/tdbtool.c b/ctdb/lib/tdb/tools/tdbtool.c
index 98b89a0470..193140b801 100644
--- a/ctdb/lib/tdb/tools/tdbtool.c
+++ b/ctdb/lib/tdb/tools/tdbtool.c
@@ -569,7 +569,9 @@ static int do_command(void)
return 0;
case CMD_SYSTEM:
/* Shell command */
- system(arg1);
+ if (system(arg1) == -1) {
+ terror("system() call failed\n");
+ }
return 0;
case CMD_QUIT:
return 1;