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 | e0567433bd72aec17bf5a54cc292701095d25f09 (patch) | |
tree | 335335fb594f280097aa1c5db1118615112d0285 /source/utils | |
parent | 8a4730f61923577b0bd9e09ef1a00538f7dfb0de (diff) | |
download | samba-e0567433bd72aec17bf5a54cc292701095d25f09.tar.gz samba-e0567433bd72aec17bf5a54cc292701095d25f09.tar.xz samba-e0567433bd72aec17bf5a54cc292701095d25f09.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.
Diffstat (limited to 'source/utils')
-rw-r--r-- | source/utils/make_printerdef.c | 2 | ||||
-rw-r--r-- | source/utils/nmblookup.c | 7 | ||||
-rw-r--r-- | source/utils/status.c | 4 |
3 files changed, 4 insertions, 9 deletions
diff --git a/source/utils/make_printerdef.c b/source/utils/make_printerdef.c index 76545b99038..aad5bc56f43 100644 --- a/source/utils/make_printerdef.c +++ b/source/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/source/utils/nmblookup.c b/source/utils/nmblookup.c index 551d453dba2..477d6590f02 100644 --- a/source/utils/nmblookup.c +++ b/source/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/source/utils/status.c b/source/utils/status.c index 737700639b1..344d46a9b98 100644 --- a/source/utils/status.c +++ b/source/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) { |