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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user