* Fixed some random compiler warnings
authorArt Cancro <ajc@citadel.org>
Fri, 4 Sep 2009 21:45:34 +0000 (21:45 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 4 Sep 2009 21:45:34 +0000 (21:45 +0000)
citadel/citadel.c
citadel/rooms.c

index f8eb4e142421306df5da44bd73e29b6001efe36a..29cc897b84d001a26a2aee23f6c06c711c1ddc68 100644 (file)
@@ -368,6 +368,7 @@ void dotgoto(CtdlIPC *ipc, char *towhere, int display_name, int fromungoto)
        int ugpos = uglistsize;
        int r;                          /* IPC result code */
        struct ctdlipcroom *room = NULL;
+       int rv = 0;
 
        /* store ungoto information */
        if (fromungoto == 0) {
@@ -502,7 +503,7 @@ void dotgoto(CtdlIPC *ipc, char *towhere, int display_name, int fromungoto)
                }
                color(DIM_WHITE);
                if (!IsEmptyStr(rc_gotmail_cmd)) {
-                       system(rc_gotmail_cmd);
+                       rv = system(rc_gotmail_cmd);
                }
        }
        status_line(ipc->ServInfo.humannode, ipc->ServInfo.site_location,
@@ -1398,6 +1399,7 @@ int main(int argc, char **argv)
        struct ctdluser *myself = NULL;
        CtdlIPC* ipc;                   /* Our server connection */
        int r;                          /* IPC result code */
+       int rv = 0;                     /* fetch but ignore syscall return value to suppress warnings */
 
        int relh=0;
        int home=0;
@@ -1734,7 +1736,7 @@ NEWUSR:   if (IsEmptyStr(rc_password)) {
                                scr_printf("*** You have %d new private messages in Mail>\n", b);
                        color(DIM_WHITE);
                        if (!IsEmptyStr(rc_gotmail_cmd)) {
-                               system(rc_gotmail_cmd);
+                               rv = system(rc_gotmail_cmd);
                        }
                }
                if ((axlevel >= 6) && (chek.needvalid > 0)) {
index 19cfb9f0163763e1517fadf0619af8eed11674bc..0bffe898ae8090c4b362c08ce2711a1897d1fa9e 100644 (file)
@@ -845,6 +845,7 @@ void download(CtdlIPC *ipc, int proto)
        FILE *tpipe = NULL;
        int broken = 0;
        int r;
+       int rv = 0;
        void *file = NULL;      /* The downloaded file */
        size_t filelen = 0L;    /* The downloaded file length */
 
@@ -905,7 +906,7 @@ void download(CtdlIPC *ipc, int proto)
 
        screen_reset();
        stty_ctdl(SB_RESTORE);
-       system(transmit_cmd);
+       rv = system(transmit_cmd);
        stty_ctdl(SB_NO_INTR);
        screen_set();