]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Import changes from -devel to remove lint.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 19 Nov 1998 01:55:36 +0000 (01:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 19 Nov 1998 01:55:36 +0000 (01:55 +0000)
clients/fax500/rp500.c
clients/mail500/main.c
clients/ud/edit.c
clients/ud/main.c
clients/ud/util.c
include/portable.h.nt
libraries/liblber/io.c

index 00d1e4ec1ecb853dac19fa3202038f94384e72bc..5f02cc40e7edcd66aab6b8b080cce0db3063cf67 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <stdlib.h>
 
+#include <ac/ctype.h>
 #include <ac/signal.h>
 #include <ac/socket.h>
 #include <ac/string.h>
index c8fb201a7368cf488fcc0ccc93b60791dbcb37e2..a53f0a3a6096b8277ea1f5956a4f8cdc47f570b5 100644 (file)
@@ -22,6 +22,8 @@
 #include <ac/wait.h>
 #include <ac/unistd.h>
 
+#include <sys/stat.h>
+
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif
index b34790ca92f4d64ad7e0a0cad28951084d6b7fea..88fe0b613a54c463b18bbee5c3d155d3537a3cc4 100644 (file)
@@ -114,10 +114,11 @@ load_editor( void )
        FILE *fp;
        char *cp, *editor = UD_DEFAULT_EDITOR;
        static char template[MED_BUF_SIZE];
+#ifndef HAVE_SPAWNLP
        int pid;
        int status;
+#endif
        int rc;
-       void (*handler)();
        
 #ifdef DEBUG
        if (debug & D_TRACE)
@@ -186,6 +187,7 @@ load_editor( void )
        }
        else if (pid > 0) {
                /* parent - wait until the child proc is done editing */
+               void (*handler)();
                handler = SIGNAL(SIGINT, SIG_IGN);
                (void) wait(&status);
                (void) SIGNAL(SIGINT, handler);
@@ -204,8 +206,12 @@ print_attrs_and_values( FILE *fp, struct attribute *attrs, short int flag )
        register int i, j;
 
        for (i = 0; attrs[i].quipu_name != NULL; i++) {
-               if (!modifiable(attrs[i].quipu_name, flag|ATTR_FLAG_MAY_EDIT))
+               if (!modifiable(attrs[i].quipu_name,
+                       (short) (flag|ATTR_FLAG_MAY_EDIT)))
+               {
                        continue;
+               }
+
                fprintf(fp, "%s\n", attrs[i].quipu_name);
                if ( attrs[i].number_of_values > MAX_VALUES ) {
                        printf("  The %s attribute has more than %d values.\n",
index e5e418fa5337c8f2888c836f960ee6ebf20465a9..83823f8a2f16de72648ee0885533caeeaf8c1f56 100644 (file)
@@ -157,6 +157,8 @@ main( int argc, char **argv )
        /* now tackle the user's commands */
        do_commands();
        /* NOTREACHED */
+
+       return 0;
 }
 
 void
@@ -521,9 +523,10 @@ initialize_client( void )
 {
        FILE *fp;                               /* for config file */
        static char buffer[MED_BUF_SIZE];       /* for input */
+#ifdef HAVE_GETPWUID
        struct passwd *pw;                      /* for getting the home dir */
+#endif
        register char *cp;                      /* for fiddling with buffer */
-       char *term;                             /* for tty set-up */
        char *config;                           /* config file to use */
        static char bp[1024];                   /* for tty set-up */
 
@@ -535,7 +538,7 @@ initialize_client( void )
         *  A per-user config file has precedence over any system-wide
         *  config file, if one exists.
         */
-#ifdef HAVE_GETPWUID_H
+#ifdef HAVE_GETPWUID
        if ((pw = getpwuid((uid_t) geteuid())) == (struct passwd *) NULL)
                config = config_file;
        else {
@@ -650,6 +653,7 @@ initialize_client( void )
 
 #ifndef NO_TERMCAP
        {
+       char *term;
        struct winsize win;                     /* for tty set-up */
 
        if (((term = getenv("TERM")) == NULL) || (tgetent(bp, term) <= 0))
index 4dd0cb223ed68ce4ea3eefd9a6874306151ca6f7..41a059d42579b7f18e10b4d2f49ee19c09ba6616 100644 (file)
 #include <ac/time.h>
 #include <ac/unistd.h>
 
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+
+#ifdef HAVE_CONIO_H
+#include <conio.h>
+#endif
+
 #include <lber.h>
 #include <ldap.h>
 #include <ldapconfig.h>
index 77936fd31df1cd527c5e8b9ad9f54e689f2aee53..fd8efac976517b0b5e647fd2b7bfa3dd98051528 100644 (file)
@@ -55,6 +55,9 @@ typedef char * caddr_t;
 /* we have winsock */
 #define HAVE_WINSOCK 1
 
+/* we have <conio.h> */
+#define HAVE_CONIO_H 1
+
 /* we have <io.h> */
 #define HAVE_IO_H 1
 
index 1cceeb5b4088e4c51d840b20b7156940768c48b2..70e5651c882b207a46c08ae9590e6ce09b36c66a 100644 (file)
@@ -467,7 +467,7 @@ ber_get_next( Sockbuf *sb, unsigned long *len, BerElement *ber )
        unsigned long   tag = 0, netlen, toread;
        unsigned char   lc;
        long            rc;
-       int                     noctets;
+       long            noctets;
        unsigned int    diff;
 
 #ifdef LDAP_DEBUG