diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-28 21:43:48 +0000 |
commit | cf3a9741dc7427efb97eff09a3c197a906ce6767 (patch) | |
tree | a5ca09216db91089dd5c2be34751733c4dbff2be /source3/utils | |
parent | cdaa53e3ef7e9bbb7dedaa82d54f730085b9250c (diff) | |
download | samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.gz samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.tar.bz2 samba-cf3a9741dc7427efb97eff09a3c197a906ce6767.zip |
Changes to test in configure if capabilities are enabled on a system.
Changes to get Samba to compile cleanly with the IRIX compiler
with the options : -fullwarn -woff 1209,1174 (the -woff options
are to turn off warnings about unused function parameters and
controlling loop expressions being constants).
Split prototype generation as we hit a limit in IRIX nawk.
Removed "." code in smbd/filename.c (yet again :-).
Jeremy.
(This used to be commit e0567433bd72aec17bf5a54cc292701095d25f09)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/make_printerdef.c | 2 | ||||
-rw-r--r-- | source3/utils/nmblookup.c | 7 | ||||
-rw-r--r-- | source3/utils/status.c | 4 |
3 files changed, 4 insertions, 9 deletions
diff --git a/source3/utils/make_printerdef.c b/source3/utils/make_printerdef.c index 76545b9903..aad5bc56f4 100644 --- a/source3/utils/make_printerdef.c +++ b/source3/utils/make_printerdef.c @@ -357,14 +357,12 @@ static void scan_copyfiles(FILE *fichier, char *chaine) static void scan_short_desc(FILE *fichier, char *short_desc) { int i=0; - char *chaine; char *temp; char *copyfiles=0,*datasection=0; helpfile=0; languagemonitor=0; datatype="RAW"; - chaine=(char *)malloc(sizeof(pstring)); temp=(char *)malloc(sizeof(pstring)); driverfile=short_desc; diff --git a/source3/utils/nmblookup.c b/source3/utils/nmblookup.c index 551d453dba..477d6590f0 100644 --- a/source3/utils/nmblookup.c +++ b/source3/utils/nmblookup.c @@ -185,7 +185,7 @@ int main(int argc,char *argv[]) for (i=optind;i<argc;i++) { - int j, count, retries = 2; + int j, count; char *p; struct in_addr ip; struct in_addr *ip_list; @@ -214,9 +214,8 @@ int main(int argc,char *argv[]) p = strchr(lookup,'#'); if (p) { - *p = 0; - sscanf(p+1,"%x",&lookup_type); - retries = 1; + *p = 0; + sscanf(p+1,"%x",&lookup_type); } if ((ip_list = name_query(ServerFD,lookup,lookup_type,use_bcast,recursion_desired, diff --git a/source3/utils/status.c b/source3/utils/status.c index 737700639b..344d46a9b9 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -143,7 +143,7 @@ static void print_share_mode(share_mode_entry *e, char *fname) { FILE *f; pstring fname; - int uid, c; + int c; static pstring servicesf = CONFIGFILE; extern char *optarg; int verbose = 0, brief =0; @@ -222,8 +222,6 @@ static void print_share_mode(share_mode_entry *e, char *fname) printf("Opened status file %s\n", fname); } - uid = getuid(); - if (!locks_only) { if (!processes_only) { |