diff options
author | Martin Baulig <martin@home-of-linux.org> | 1998-08-25 08:32:45 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1998-08-25 08:32:45 +0000 |
commit | f353017948d79b37ae7498174d14a15dca87b1e4 (patch) | |
tree | e557adf33b4747264f61f9211629e4175d7c10a8 /examples/procmap.c | |
parent | f66f7fde8c07c98594f4aec55dde0fc81b83192f (diff) | |
download | libgtop-f353017948d79b37ae7498174d14a15dca87b1e4.tar.gz |
Fixed some compiler warnings.
1998-08-25 Martin Baulig <martin@home-of-linux.org>
* first.c, second.c, procmap.c: Fixed some compiler warnings.
Diffstat (limited to 'examples/procmap.c')
-rw-r--r-- | examples/procmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/procmap.c b/examples/procmap.c index 9da8cf40..f6bc2e81 100644 --- a/examples/procmap.c +++ b/examples/procmap.c @@ -79,14 +79,14 @@ main (int argc, char *argv []) glibtop_init_r (&glibtop_global_server, 0, 0); - if ((argc != 2) || (sscanf (argv [1], "%d", &pid) != 1)) + if ((argc != 2) || (sscanf (argv [1], "%d", (int *) &pid) != 1)) glibtop_error ("Usage: %s pid", argv [0]); #ifdef GLIBTOP_INODEDB inodedb = glibtop_inodedb_open (0, 0); #endif - fprintf (stderr, "Getting memory maps for pid %d.\n\n", pid); + fprintf (stderr, "Getting memory maps for pid %d.\n\n", (int) pid); maps = glibtop_get_proc_map (&procmap, pid); |