Added -gnu89 to CFLAGS.

* configure.in: Added -gnu89 to CFLAGS.

	* examples/Makefile.am: Fixed LDFLAGS.

	* sysdeps/common/fsusage.c: (glibtop_get_fsusage_s):
	* sysdeps/linux/fsusage.c: (linux_2_6_0):
	* sysdeps/linux/proctime.c: (glibtop_get_proc_time_s):
	* sysdeps/linux/sysinfo.c: (init_sysinfo): Fixed C89 issues.

	Closes #149375.
This commit is contained in:
Benoît Dejean
2004-08-09 07:55:50 +00:00
parent d872544eb7
commit bce095739f
7 changed files with 42 additions and 23 deletions

View File

@@ -74,9 +74,10 @@ glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf, pid_t pid)
p = skip_multiple_token (p, 3);
// timeout is 0 on 2.4 and "thread_number" on 2.6
// lets skip it (using previous skip_multiple_token)
// buf->timeout = strtoull (p, &p, 0);
/* timeout is 0 on 2.4 and "thread_number" on 2.6
lets skip it (using previous skip_multiple_token)
buf->timeout = strtoull (p, &p, 0);
*/
buf->it_real_value = strtoull (p, &p, 0);
/* seconds since epoch */