diff --git a/mx_log.c b/mx_log.c index 6a6a5b53..9e27bd3a 100644 --- a/mx_log.c +++ b/mx_log.c @@ -64,7 +64,6 @@ int mx_log_printf(const char *fmt, ...) { int len; int len2; - int res; char *msg = NULL; va_list ap; @@ -84,15 +83,12 @@ int mx_log_printf(const char *fmt, ...) } len2 = fprintf(stderr, "%s\n", msg); - res = fflush(stderr); + fflush(stderr); mx_free_null(msg); if (len2 != len+1) return -(errno=EIO); - if (!res) - res = 0; - return len; } diff --git a/mx_proc.c b/mx_proc.c index 16c71f33..67ecb2e2 100644 --- a/mx_proc.c +++ b/mx_proc.c @@ -224,8 +224,6 @@ static struct mx_proc_tree_node *mx_proc_tree_find_by_pid(struct mx_proc_tree_no if (pid == 0) return NULL; - current = ptn; - for (current = ptn; current; current=current->next) { if (current->pinfo.pstat->pid == pid) return current; diff --git a/mxqps.c b/mxqps.c index 5088edc0..2e956a85 100644 --- a/mxqps.c +++ b/mxqps.c @@ -26,9 +26,6 @@ int mx_proc_tree_node_print_debug(struct mx_proc_tree_node *ptn, int lvl) assert(ptn); struct mx_proc_tree_node *current; - - current = ptn; - long pagesize; pagesize = sysconf(_SC_PAGESIZE);