]> diplodocus.org Git - nmh/blobdiff - uip/slocal.c
Just reworded the bit about '%s' being safe not to quote (it's only safe not to
[nmh] / uip / slocal.c
index a306cadaefe6c96767b8310675be6f1380de291b..22ba3e8b39ed0699e7f3e6bdc10e59dc6b00491f 100644 (file)
 #include <pwd.h>
 #include <signal.h>
 #include <sys/ioctl.h>
-#include <ndbm.h>
 #include <fcntl.h>
 
+#ifdef INITGROUPS_HEADER
+#include INITGROUPS_HEADER
+#else
+/* On AIX 4.1, initgroups() is defined and even documented (giving the parameter
+   types as char* and int), but doesn't have a prototype in any of the system
+   header files.  AIX 4.3, SunOS 4.1.3, and ULTRIX 4.2A have the same
+   problem. */
+extern int  initgroups(char*, int);
+#endif
+
+
+#ifdef HAVE_DB1_NDBM_H
+#include <db1/ndbm.h>
+#else
+#include <ndbm.h>
+#endif
+
 #include <utmp.h>
 
 #ifndef UTMP_FILE
@@ -70,7 +86,7 @@ static struct swit switches[] = {
 #define VERSIONSW     13
     { "version", 0 },
 #define        HELPSW        14
-    { "help", 4 },
+    { "help", 0 },
     { NULL, 0 }
 };