From 085efacada12da5f795db776c59af1874e9ee440 Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 3 Aug 2005 19:38:43 +0000 Subject: 2005-08-03 Martin Hunt * librelay.c (init_stp): Change variable name to eliminate shadow warning. --- runtime/stpd/ChangeLog | 2 ++ runtime/stpd/librelay.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'runtime/stpd') diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog index de453759..1347311b 100644 --- a/runtime/stpd/ChangeLog +++ b/runtime/stpd/ChangeLog @@ -1,5 +1,7 @@ 2005-08-03 Martin Hunt + * librelay.c (init_stp): Change variable name to eliminate shadow warning. +2005-08-03 Martin Hunt * librelay.c (open_control_channel): Set the receive buffer to 512K, or the max allowed. diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index bca63e6e..43a4b169 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -469,7 +469,7 @@ int init_stp(const char *relay_filebase, int print_summary) char buf[1024]; struct transport_info ti; pid_t pid; - int status; + int rstatus; ncpus = sysconf(_SC_NPROCESSORS_ONLN); print_totals = print_summary; @@ -482,11 +482,11 @@ int init_stp(const char *relay_filebase, int print_summary) if (execl("/sbin/insmod", "insmod", modname, buf, NULL) < 0) exit(-1); } - if (waitpid(pid, &status, 0) < 0) { + if (waitpid(pid, &rstatus, 0) < 0) { perror("waitpid"); exit(-1); } - if (WIFEXITED(status) && WEXITSTATUS(status)) { + if (WIFEXITED(rstatus) && WEXITSTATUS(rstatus)) { perror ("insmod"); fprintf(stderr, "ERROR, couldn't insmod probe module %s\n", modname); return -1; -- cgit