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

@@ -30,7 +30,8 @@ static void linux_2_6_0(glibtop *server, glibtop_fsusage *buf, const char *path)
{
if(strcmp(emnt->mnt_dir, path) != 0)
continue;
else
{
char filename[64]; /* magic */
char buffer[1024]; /* magic */
@@ -75,6 +76,7 @@ static void linux_2_6_0(glibtop *server, glibtop_fsusage *buf, const char *path)
buf->read = strtoull(p, &p, 0);
p = skip_token(p);
buf->write = strtoull(p, &p, 0);
}
}
endmntent(mtab);