diff options
author | Jeremy Allison <jra@samba.org> | 2008-12-31 18:06:57 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-12-31 18:06:57 -0800 |
commit | 07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00 (patch) | |
tree | 412f448d68b4b0f36c5b330a1f3eef77acf12a2f /source3/utils/net_time.c | |
parent | bb23f5725f538d14b2ccec0463cfb1136be3ebd0 (diff) | |
download | samba-07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00.tar.gz samba-07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00.tar.bz2 samba-07e0094365e8dc360a83eec2e7cf9b1d5d8d6d00.zip |
Fix all warnings in source3 with gcc4.3.
Jeremy.
Diffstat (limited to 'source3/utils/net_time.c')
-rw-r--r-- | source3/utils/net_time.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/utils/net_time.c b/source3/utils/net_time.c index 8be9ed922c..b6198376af 100644 --- a/source3/utils/net_time.c +++ b/source3/utils/net_time.c @@ -116,7 +116,9 @@ static int net_time_set(struct net_context *c, int argc, const char **argv) /* yes, I know this is cheesy. Use "net time system" if you want to roll your own. I'm putting this in as it works on a large number of systems and the user has a choice in whether its used or not */ - asprintf(&cmd, "/bin/date %s", systime(t)); + if (asprintf(&cmd, "/bin/date %s", systime(t)) == -1) { + return -1; + } result = system(cmd); if (result) d_fprintf(stderr, "%s failed. Error was (%s)\n", |