]> arthur.barton.de Git - netatalk.git/commitdiff
warning fixes
authorbfernhomberg <bfernhomberg>
Sat, 10 Jan 2004 08:24:23 +0000 (08:24 +0000)
committerbfernhomberg <bfernhomberg>
Sat, 10 Jan 2004 08:24:23 +0000 (08:24 +0000)
etc/psf/psf.c
libatalk/util/fault.c
libatalk/util/getiface.c
libatalk/util/logger.c
libatalk/util/server_ipc.c

index 9d7c2e30e04cc97ee7025da80cee284a8f27bb5a..fb965465b63cc5232e94c83f0cb0cff3f843959c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: psf.c,v 1.8 2002-05-23 15:58:55 rufustfirefly Exp $
+ * $Id: psf.c,v 1.8.8.1 2004-01-10 08:24:23 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1995 Regents of The University of Michigan.
  * All Rights Reserved. See COPYRIGHT.
@@ -97,7 +97,7 @@ int main( ac, av )
 {
     int                        c, rc, children = 0;
 #ifdef FUCKED
-    int                        psafileno, multiconn = 0, waitidle = 0, waitidle2 = 0;
+    int                        psafileno = 0, multiconn = 0, waitidle = 0, waitidle2 = 0;
 #endif /* FUCKED */
     int                        status;
     extern char                *optarg;
@@ -485,7 +485,8 @@ char                pspro[] = "\
 int textps()
 {
     struct papersize   papersize;
-    int                        state = 0, line = 0, col = 0, npages = 0, rc, i;
+    int                        state = 0, line = 0, col = 0, npages = 0, rc;
+    unsigned int       i;
     char               *p, *end;
 
 #define elements(x)    (sizeof(x)/sizeof((x)[0]))
index 1c62665c952ef13b9784de6ace73dd3a832bf9d9..3b9730978978ccc8c97e7a6fb14fba90c21db385 100644 (file)
@@ -85,8 +85,10 @@ static void (*CatchSignal(int signum,void (*handler)(int )))(int)
 
 static void smb_panic(const char *why)
 {
+#if 0
        char *cmd;
        int result;
+#endif
 #ifdef HAVE_BACKTRACE_SYMBOLS
        void *backtrace_stack[BACKTRACE_STACK_SIZE];
        size_t backtrace_size;
index 52f2f7e9a45ddda324dccd508262c27f6409b83f..01f552a830bcf5be287d7c1fdd5126715500033b 100644 (file)
@@ -92,7 +92,7 @@ static int getifaces(const int sockfd, char ***list)
     }
 
        new = (char **) malloc((ifc.ifc_len/sizeof(struct ifreq) + 1) * sizeof(char *));
-    for ( ifr = ifc.ifc_req; ifc.ifc_len >= sizeof( struct ifreq );
+    for ( ifr = ifc.ifc_req; ifc.ifc_len >= (int) sizeof( struct ifreq );
            ifc.ifc_len -= ifrsize, ifr = nextifr ) {
 #ifdef BSD4_4
        ifrsize = sizeof(ifr->ifr_name) +
index 9fb13febd52873ba8841ac20a44772335b6d0498..4ba49fb9a094af29aa7159db1cc56bfa0645e561 100644 (file)
@@ -815,7 +815,7 @@ void generate_message_details(char *message_details_buffer,
   if (what_to_print.print_srcfile || what_to_print.print_srcline)
   {
     char sprintf_buffer[8];
-    char *buff_ptr;
+    char *buff_ptr=NULL;
 
     sprintf_buffer[0] = '[';
     if (what_to_print.print_srcfile)
index 58eba00d4c24ec5daefa91ded54d6cb811373d53..1f7fc15f9376e4a5fc5fb9f293547dbf6916e484 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: server_ipc.c,v 1.1.4.1 2003-07-21 05:50:55 didg Exp $
+ * $Id: server_ipc.c,v 1.1.4.1.2.1 2004-01-10 08:29:16 bfernhomberg Exp $
  *
  * All rights reserved. See COPYRIGHT.
  *
@@ -134,7 +134,7 @@ int server_ipc_read(server_child *children)
 
     memset (buf, 0, IPC_MAXMSGSIZE);
     if ( ipc.len != 0) {
-           if ((ret = read(pipe_fd[0], buf, ipc.len)) != ipc.len) {
+           if ((ret = read(pipe_fd[0], buf, ipc.len)) != (int) ipc.len) {
                LOG (log_info, logtype_afpd, "Reading IPC message failed (%u of %u  bytes read)", ret, ipc.len);
                return -1;
        }