From 8aa84aaa5cff01ab6d1c0e99e952eb8159fa0dc5 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 4 Sep 2009 21:45:34 +0000 Subject: [PATCH] * Fixed some random compiler warnings --- citadel/citadel.c | 6 ++++-- citadel/rooms.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/citadel/citadel.c b/citadel/citadel.c index f8eb4e142..29cc897b8 100644 --- a/citadel/citadel.c +++ b/citadel/citadel.c @@ -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)) { diff --git a/citadel/rooms.c b/citadel/rooms.c index 19cfb9f01..0bffe898a 100644 --- a/citadel/rooms.c +++ b/citadel/rooms.c @@ -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(); -- 2.39.2