Fixed warnings about proclist returning pid_t.
svn path=/trunk/; revision=2728
This commit is contained in:
@@ -47,9 +47,9 @@ main (int argc, char *argv [])
|
|||||||
{
|
{
|
||||||
glibtop_union data;
|
glibtop_union data;
|
||||||
glibtop_sysdeps sysdeps;
|
glibtop_sysdeps sysdeps;
|
||||||
unsigned c, method, count, port, i, *ptr;
|
unsigned c, method, count, port, i;
|
||||||
char buffer [BUFSIZ];
|
char buffer [BUFSIZ];
|
||||||
pid_t pid, ppid;
|
pid_t pid, ppid, *ptr;
|
||||||
char *args;
|
char *args;
|
||||||
|
|
||||||
count = PROFILE_COUNT;
|
count = PROFILE_COUNT;
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
static void print_pids(guint64 which, guint64 arg)
|
static void print_pids(guint64 which, guint64 arg)
|
||||||
{
|
{
|
||||||
unsigned *pids;
|
pid_t *pids;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
glibtop_proclist buf;
|
glibtop_proclist buf;
|
||||||
|
|
||||||
|
@@ -239,7 +239,8 @@ main (int argc, char *argv [])
|
|||||||
{
|
{
|
||||||
glibtop_proclist proclist;
|
glibtop_proclist proclist;
|
||||||
glibtop_sysdeps sysdeps;
|
glibtop_sysdeps sysdeps;
|
||||||
unsigned *ptr, pid, i;
|
unsigned i;
|
||||||
|
pid_t *ptr, pid;
|
||||||
|
|
||||||
setlocale (LC_ALL, "");
|
setlocale (LC_ALL, "");
|
||||||
bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
|
bindtextdomain (GETTEXT_PACKAGE, GTOPLOCALEDIR);
|
||||||
|
@@ -73,11 +73,11 @@ int
|
|||||||
main (int argc, char *argv [])
|
main (int argc, char *argv [])
|
||||||
{
|
{
|
||||||
glibtop_union data;
|
glibtop_union data;
|
||||||
unsigned c, count, *ptr;
|
unsigned c, count;
|
||||||
struct rusage total_start, total_end;
|
struct rusage total_start, total_end;
|
||||||
struct rusage rusage_start, rusage_end;
|
struct rusage rusage_start, rusage_end;
|
||||||
struct timeval elapsed_utime, elapsed_stime;
|
struct timeval elapsed_utime, elapsed_stime;
|
||||||
pid_t pid;
|
pid_t pid, *ptr;
|
||||||
|
|
||||||
count = PROFILE_COUNT;
|
count = PROFILE_COUNT;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user