]> andersk Git - moira.git/commitdiff
lint
authormar <mar>
Fri, 8 Mar 1991 10:15:52 +0000 (10:15 +0000)
committermar <mar>
Fri, 8 Mar 1991 10:15:52 +0000 (10:15 +0000)
16 files changed:
clients/blanche/blanche.c
clients/moira/menu.c
clients/moira/utils.c
gdb/gdb_db.c
gdb/gdb_fserv.c
gdb/gdb_lib.h
gdb/gdb_ops.c
gdb/gdb_serv.c
gdb/gdb_struct.c
gdb/gdb_stype.c
lib/critical.c
lib/hash.c
lib/mr_auth.c
lib/mr_ops.c
lib/mr_param.c
lib/sq.c

index 6d582928b6dd500e48927a92449d5ea83bd97cc3..aa34f8d3407bc95918e38212cf9fe8994cb8a97c 100644 (file)
@@ -388,7 +388,7 @@ char **argv;
 show_list_member(memberstruct)
 struct member *memberstruct;
 {
-    char *s;
+    char *s = "";
 
     switch (memberstruct->type) {
     case M_USER:
index b44d4241e6ea013ab124644e90cf2304fbaa9fd7..2b8892254cf6ca04f2b5558bd25348a32d5529d6 100644 (file)
@@ -115,7 +115,7 @@ Start_menu(m)
     register void (*old_hook)() = set_com_err_hook(menu_com_err_hook);
 #endif
     
-    if (initscr() == ERR) {
+    if (initscr() == (WINDOW *)ERR) {
        fputs("Can't initialize curses!\n", stderr);
        Start_no_menu(m);
     } else {
index b556facaa5dd71301f3b55227dfb8c212e9b09f4..f3999345e73ae1154b72b9dda8c7934c7571b71a 100644 (file)
@@ -275,6 +275,8 @@ Scream()
            "\nA Moira update returned a value -- programmer botch\n");
     mr_disconnect();
     exit(1);
+    /*NOTREACHED*/
+    return(-1);
 }
 
 /*     Function Name: PromptWithDefault
index 4130c656e0acd607fa912895ec80a7ed156782a8..0b03fc84faca5cdfeb98a6f28aac4b1a3748fdce 100644 (file)
@@ -238,6 +238,7 @@ DATABASE *db_handle;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_iadb(op, hcon, arg)
 OPERATION op;
@@ -568,6 +569,7 @@ char *request;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_ipdb(op, hcon, arg)
 OPERATION op;
@@ -888,6 +890,7 @@ char *query;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_idbq(op, hcon, arg)
 OPERATION op;
@@ -971,6 +974,7 @@ struct dbq_data *arg;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_cdbq(op, hcon, arg)
 OPERATION op;
index 33986ecc4702bfdd0f3e1bec1a53c537ddd41863..4000b35e1f06249ce8cb312d99b6d4237527817e 100644 (file)
@@ -1,5 +1,4 @@
 /*
- *     $Source$
  *     $Header$
  */
 
@@ -9,36 +8,18 @@ static char *rcsid_gdb_fserv_c = "$Header$";
 
 
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-/************************************************************************/
-/*     
-/*                        gdb_fserv.c
-/*     
-/*           GDB - Routines to implement forking servers.
-/*     
-/*     Author: Noah Mendelsohn
-/*     Copyright: 1986 MIT Project Athena 
-/*             For copying and distribution information, please see
-/*             the file <mit-copyright.h>.
-/*     
-/************************************************************************/
+/************************************************************************
+ *     
+ *                        gdb_fserv.c
+ *     
+ *           GDB - Routines to implement forking servers.
+ *     
+ *     Author: Noah Mendelsohn
+ *     Copyright: 1986 MIT Project Athena 
+ *             For copying and distribution information, please see
+ *             the file <mit-copyright.h>.
+ *     
+ ************************************************************************/
 
 #include <mit-copyright.h>
 #include <stdio.h>
@@ -50,45 +31,45 @@ static char *rcsid_gdb_fserv_c = "$Header$";
 #include "gdb.h"
 #include <sys/resource.h>
 \f
-/************************************************************************/
-/*     
-/*                     create_forking_server (create_forking_server)
-/*     
-/*     Called by an application to turn itself into a forking model
-/*     server.  Returns from this routine occur only in the forked
-/*     children.  The parent lives in this routine forever, waiting
-/*     for incoming connection requests and doing the appropriate
-/*     forking.
-/*     
-/*     Children are expected to do their own cleanup, but this routine
-/*     does do the work of reaping the resulting zombie processes.
-/*     
-/*     ARGUMENTS:
-/*     ----------
-/*     
-/*             service-id      identifies the port to be used for
-/*                             listening.  Same rules as for
-/*                             create_listening_connection.
-/*     
-/*             validate-rtn    pointer to a function to be called to
-/*                             validate the incoming client.  Should
-/*                             return TRUE if client is acceptable,
-/*                             else false.  If this is NULL, all clients
-/*                             are accepted.
-/*     
-/*     GLOBAL VARIABLES
-/*     ----------------
-/*     
-/*     Children created by this routine inherit the global variables
-/*     gdb_sockaddr_of_client, which is of type sockaddr_in and 
-/*     gdb_socklen, which is the returned length of the sockaddr.
-/*     These are the Berkeley identifiers of the clients as accepted.
-/*     Use of this interface is non-portable to other than Berkeley 
-/*     systems.
-/*     
-/*     The client's request tuple may be found in gdb_client_tuple.
-/*     
-/************************************************************************/
+/************************************************************************
+ *     
+ *                     create_forking_server (create_forking_server)
+ *     
+ *     Called by an application to turn itself into a forking model
+ *     server.  Returns from this routine occur only in the forked
+ *     children.  The parent lives in this routine forever, waiting
+ *     for incoming connection requests and doing the appropriate
+ *     forking.
+ *     
+ *     Children are expected to do their own cleanup, but this routine
+ *     does do the work of reaping the resulting zombie processes.
+ *     
+ *     ARGUMENTS:
+ *     ----------
+ *     
+ *             service-id      identifies the port to be used for
+ *                             listening.  Same rules as for
+ *                             create_listening_connection.
+ *     
+ *             validate-rtn    pointer to a function to be called to
+ *                             validate the incoming client.  Should
+ *                             return TRUE if client is acceptable,
+ *                             else false.  If this is NULL, all clients
+ *                             are accepted.
+ *     
+ *     GLOBAL VARIABLES
+ *     ----------------
+ *     
+ *     Children created by this routine inherit the global variables
+ *     gdb_sockaddr_of_client, which is of type sockaddr_in and 
+ *     gdb_socklen, which is the returned length of the sockaddr.
+ *     These are the Berkeley identifiers of the clients as accepted.
+ *     Use of this interface is non-portable to other than Berkeley 
+ *     systems.
+ *     
+ *     The client's request tuple may be found in gdb_client_tuple.
+ *     
+ ************************************************************************/
 
 
 CONNECTION
@@ -96,7 +77,7 @@ create_forking_server(service, validate)
 char *service;
 int (*validate)();
 {
-
+       void start_accepting_client();
        CONNECTION incoming;                    /* listen for incoming */
                                                /* children here */
        CONNECTION client = NULL;               /* connection to client */
index 2ffd651c0b50ef8c01282125e8ef5378b8b84272..c67b6eb316a1392c7ac641473b045c5ec83cf894 100644 (file)
@@ -132,6 +132,14 @@ struct con_data gdb_cons[GDB_MAX_CONNECTIONS];     /* actual connection data */
 fd_set gdb_crfds, gdb_cwfds, gdb_cefds;                /* connection related file */
                                                /* descriptor maps to be */
                                                /* used in select */
+fd_set last_crfds, last_cwfds, last_cefds;     /* these file desc. bit */
+                                               /* masks are set up */
+                                               /* for each select call */
+                                               /* to include the user */
+                                               /* supplied and the */
+                                               /* connection related */
+                                               /* fd's */
+
        /*----------------------------------------------------------*/
        /*      
        /*                      gdb_notime
index 1b6b7af1fd32aab8abf5793b60a55939f9c68bb3..449feec61f642868878813c4ab284fe09afd7ecd 100644 (file)
@@ -222,6 +222,7 @@ struct obj_data *arg;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_csnobj(op, hcon, arg)
 OPERATION op;
@@ -657,6 +658,7 @@ struct lis_data *arg;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_clis(op, hcon, arg)
 OPERATION op;
@@ -774,6 +776,7 @@ TUPLE *tuplep;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_iacc(op, hcon, arg)
 OPERATION op;
@@ -878,6 +881,7 @@ struct acc_data *arg;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_i2acc(op, hcon, arg)
 OPERATION op;
index 0514d7ac2bc7784197a35d233fced75145b5d68f..4d2721ad44f3590069c1af256e5f6bcb086fea98 100644 (file)
@@ -462,6 +462,7 @@ char *parms;                                        /*   "     "       */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_irtc(op, hcon, arg)
 OPERATION op;
index 8697966ef1d202858f346c4d38003e1d9c7dbee9..345b1bffbf21c29b7923a805e35134ce6a69fcf0 100644 (file)
@@ -1,5 +1,4 @@
 /*
- *     $Source$
  *     $Header$
  */
 
@@ -7,25 +6,6 @@
 static char *rcsid_gdb_struct_c = "$Header$";
 #endif lint
 
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
 
 /************************************************************************/
 /*     
@@ -61,7 +41,9 @@ static char *rcsid_gdb_struct_c = "$Header$";
 #include "gdb.h"
 
 extern char *malloc();
+#ifndef lint
 extern void   free();
+#endif
 \f
 /************************************************************************/
 /*     
@@ -102,6 +84,7 @@ int bytes;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 gdb_fm(ptr, bytes)
 char *ptr;
index fd4f0e85eabc60e95c262a442786a67e9bc4ceec..ba7da0fca437a4ee8286614fe9be1a896ac9e8f6 100644 (file)
@@ -113,6 +113,7 @@ char *dp;                                   /* pointer to the data */
        /*----------------------------------------------------------*/
 
 
+/*ARGSUSED*/
 int
 g_in_cdlen(dp,hcon)
 char *dp;                                      /* pointer to the data */
@@ -129,6 +130,7 @@ HALF_CONNECTION hcon;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_in_enc(dp, hcon, outp)
 char *dp;                                      /* pointer to data */
@@ -169,6 +171,7 @@ char *outp;                                 /* place to put the output */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_in_dec(outp, hcon, inp)
 char *inp;                                     /* pointer to data */
@@ -444,6 +447,7 @@ char *dp;                                   /* pointer to the data */
        /*----------------------------------------------------------*/
 
 
+/*ARGSUSED*/
 int
 g_rl_cdlen(dp,hcon)
 char *dp;                                      /* pointer to the data */
@@ -460,6 +464,7 @@ HALF_CONNECTION hcon;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_rl_enc(dp, hcon, outp)
 char *dp;                                      /* pointer to data */
@@ -500,6 +505,7 @@ char *outp;                                 /* place to put the output */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_rl_dec(outp, hcon, inp)
 char *inp;                                     /* pointer to data */
@@ -577,6 +583,7 @@ char *dp;                                   /* pointer to the data */
        /*----------------------------------------------------------*/
 
 
+/*ARGSUSED*/
 int
 g_dt_cdlen(dp,hcon)
 char *dp;                                      /* pointer to the data */
@@ -593,6 +600,7 @@ HALF_CONNECTION hcon;
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_dt_enc(dp, hcon, outp)
 char *dp;                                      /* pointer to data */
@@ -622,6 +630,7 @@ char *outp;                                 /* place to put the output */
        /*      
        /*----------------------------------------------------------*/
 
+/*ARGSUSED*/
 int
 g_dt_dec(outp, hcon, inp)
 char *inp;                                     /* pointer to data */
index 3afcce545d73e751f83c3e009471ac8657de82ea..c0af33bf1f294564c6e836c7e1887b2226ecf4ee 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <mit-copyright.h>
 #include <stdio.h>
+#include <sys/types.h>
 #include <sys/file.h>
 #include <moira_site.h>
 #ifdef ZEPHYR
@@ -51,7 +52,7 @@ void critical_alert(instance, msg, arg1, arg2, arg3, arg4,
     /* Log message to critical file */
     if ((crit = fopen(CRITERRLOG, "a")) != (FILE *)NULL) 
     {
-       long t;
+       long t, time();
        char  *time_s;
 
        time(&t);
index 2a41cd2e826fe1f964967767a92bda0820b8ad43..d09615c1543e56915e00db057b1b241d20b5dd7c 100644 (file)
@@ -11,6 +11,8 @@
 #include <ctype.h>
 #include <moira.h>
 
+extern char *malloc();
+
 #define NULL 0
 #define hash_func(h, key) (key >= 0 ? (key % h->size) : (-key % h->size))
 
index 53b6349ec327b2e1011bf211b34908a14eebfcb1..ca0eb45398d4796365047944b8fc3bd59fa20fa1 100644 (file)
@@ -20,6 +20,7 @@ static char *rcsid_sms_auth_c = "$Header$";
 #include <ctype.h>
 #include <krb.h>
 #include <krb_et.h>
+#include <strings.h>
 
 /* Authenticate this client with the MR server.  prog is the name of the
  * client program, and will be recorded in the database.
index 3ee171bbc036f75b056002ba349848ed198aaf33..8c3b5912f7d57aaca97e7fcc75cc997e4dfdfb7f 100644 (file)
@@ -18,6 +18,7 @@ static char *rcsid_sms_do_update_c = "$Header$";
 #endif lint
 
 #include <mit-copyright.h>
+#include <strings.h>
 #include "mr_private.h"
 
 
index 8f5923b3a8c23b9d6916d746c2e7b6787233c53c..661b7862c73e6d403597e749d30285d492c3a673 100644 (file)
@@ -28,6 +28,7 @@ static char *rcsid_sms_param_c = "$Header$";
  * write of the next bunch of data.
  */
 
+/*ARGSUSED*/
 mr_cont_send(op, hcon, arg)
     OPERATION op;
     HALF_CONNECTION hcon;
@@ -129,6 +130,7 @@ mr_start_send(op, hcon, arg)
     else return OP_RUNNING;
 }      
        
+/*ARGSUSED*/
 mr_cont_recv(op, hcon, argp)
     OPERATION op;
     HALF_CONNECTION hcon;
index 72fcfbacc718e41b397f8d3b49b83bc52a6356f4..eabefd615728f94595b211d86c3ba5ba9c8da01a 100644 (file)
--- a/lib/sq.c
+++ b/lib/sq.c
@@ -10,6 +10,8 @@
 #include <mit-copyright.h>
 #include <moira.h>
 
+extern char *malloc();
+
 struct save_queue *
 sq_create()
 {
@@ -52,7 +54,7 @@ sq_save_args(argc, argv, sq)
        bcopy(argv[i], argv_copy[i], n);
     }
 
-    sq_save_data(sq, argv_copy);
+    sq_save_data(sq, (char *)argv_copy);
 }
 
 sq_save_unique_data(sq, data)
This page took 0.077129 seconds and 5 git commands to generate.