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

@@ -37,6 +37,7 @@ static void
init_sysinfo (glibtop *server)
{
char buffer [BUFSIZ];
gchar ** processors;
if(G_LIKELY(sysinfo.flags)) return;
@@ -45,8 +46,7 @@ init_sysinfo (glibtop *server)
file_to_buffer(server, buffer, FILENAME);
/* cpuinfo records are seperated by a blank line */
gchar ** const processors = g_strsplit(buffer, "\n\n", 0);
processors = g_strsplit(buffer, "\n\n", 0);
for(sysinfo.ncpu = 0;
sysinfo.ncpu < GLIBTOP_NCPU && processors[sysinfo.ncpu] && *processors[sysinfo.ncpu];