diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-22 17:54:34 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-22 17:54:34 +0000 |
commit | 492072314b12f09b85353be971a0ab7d1329b179 (patch) | |
tree | facb3b9c2e4372935155440f49efc60bf1973c88 /source3/utils | |
parent | 5b17f2a9e47fd57bd11db28abb48a71f8321c035 (diff) | |
download | samba-492072314b12f09b85353be971a0ab7d1329b179.tar.gz samba-492072314b12f09b85353be971a0ab7d1329b179.tar.bz2 samba-492072314b12f09b85353be971a0ab7d1329b179.zip |
fix some warnings found by the Sun C compiler
(This used to be commit 585764305aa84a7732f71f2e01227e1a6a08664f)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_groupmap.c | 5 | ||||
-rw-r--r-- | source3/utils/net_rpc.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c index 323f4afbc3..06a8daa775 100644 --- a/source3/utils/net_groupmap.c +++ b/source3/utils/net_groupmap.c @@ -508,9 +508,8 @@ int net_groupmap(int argc, const char **argv) return -1; } - return net_run_function(argc, argv, func, net_help_groupmap); - if ( 0 == argc ) - return net_help_groupmap( argc, argv ); + if ( argc ) + return net_run_function(argc, argv, func, net_help_groupmap); return net_help_groupmap( argc, argv ); } diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index fefc5af365..85818152d1 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -1976,7 +1976,7 @@ static NTSTATUS rpc_query_domain_sid(const DOM_SID *domain_sid, struct cli_state sid_to_string(str_sid, domain_sid); d_printf("%s\n", str_sid); return NT_STATUS_OK; -}; +} static int rpc_trustdom_list(int argc, const char **argv) |