From 77e652803d2bfd69d742d5c531227471f23552b3 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 12 Sep 2005 20:54:09 +0000 Subject: [PATCH] remove unused var --- src/os/solaris/solaris_sigar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 23c6b292..1af582b5 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -693,7 +693,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, int fd, status; char buffer[BUFSIZ]; char *argvb[56]; - char *arg, **argvp = argvb; + char **argvp = argvb; int n; size_t nread = 0; @@ -727,8 +727,6 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, (char **)malloc(sizeof(*(procargs->data)) * procargs->size); - arg = buffer; - for (n = 0; n < pinfo->pr_argc; n++) { int alen; char *arg;