rid warnings

This commit is contained in:
Doug MacEachern 2005-12-15 20:22:01 +00:00
parent 9e2d3a3fe0
commit 0f465e7851
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#include <dlfcn.h> #include <dlfcn.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h> #include <strings.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
@ -71,7 +73,6 @@ static int sigar_main(char *argv0)
void *handle; void *handle;
sigar_callback_t *callbacks = sigar_callback_t *callbacks =
(sigar_callback_t *)&sigar_callbacks; (sigar_callback_t *)&sigar_callbacks;
int i;
strcpy(sigarlib, argv0); strcpy(sigarlib, argv0);
ptr = rindex(sigarlib, '/'); ptr = rindex(sigarlib, '/');