summaryrefslogtreecommitdiff
path: root/examples/first.c
diff options
context:
space:
mode:
authorBenoît Dejean <bdejean@src.gnome.org>2008-04-03 16:29:55 +0000
committerBenoît Dejean <bdejean@src.gnome.org>2008-04-03 16:29:55 +0000
commit87a80ba43055b107e06cc6614fa73a15e2cc6c94 (patch)
tree9fbc57676ca507e015d14496f809e4fbee3b95cc /examples/first.c
parent7bb5abb9a8df155da9dc1fbc70be633fa7f48827 (diff)
downloadlibgtop-87a80ba43055b107e06cc6614fa73a15e2cc6c94.tar.gz
Fixed warnings about proclist returning pid_t.
svn path=/trunk/; revision=2728
Diffstat (limited to 'examples/first.c')
-rw-r--r--examples/first.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/first.c b/examples/first.c
index 6ef5819d..7babff80 100644
--- a/examples/first.c
+++ b/examples/first.c
@@ -47,9 +47,9 @@ main (int argc, char *argv [])
{
glibtop_union data;
glibtop_sysdeps sysdeps;
- unsigned c, method, count, port, i, *ptr;
+ unsigned c, method, count, port, i;
char buffer [BUFSIZ];
- pid_t pid, ppid;
+ pid_t pid, ppid, *ptr;
char *args;
count = PROFILE_COUNT;