summaryrefslogtreecommitdiff
path: root/macros/gnome-fileutils.m4
diff options
context:
space:
mode:
authorPavel Roskin <proskin@src.gnome.org>2001-06-13 19:17:16 +0000
committerPavel Roskin <proskin@src.gnome.org>2001-06-13 19:17:16 +0000
commit89b5f842b950e5bdad7b6561cf0281e2be48d27b (patch)
tree5479afeb13210180997f0a924178a4b23a0eb32f /macros/gnome-fileutils.m4
parent164775f05c4ac3c36275478f864af5d1e7e0cf86 (diff)
downloadshared-mime-info-89b5f842b950e5bdad7b6561cf0281e2be48d27b.tar.gz
Always explicitly declare main() with the return type `int'. Don't use
* gnome-fileutils.m4: Always explicitly declare main() with the return type `int'. Don't use exit() since it may be undeclared. Use `return' instead. * gnome-pilot.m4: Likewise. * gperf-check.m4: Likewise. * linger.m4: Likewise. svn path=/trunk/; revision=1791
Diffstat (limited to 'macros/gnome-fileutils.m4')
-rw-r--r--macros/gnome-fileutils.m420
1 files changed, 10 insertions, 10 deletions
diff --git a/macros/gnome-fileutils.m4 b/macros/gnome-fileutils.m4
index 7c11a785..ebb0286f 100644
--- a/macros/gnome-fileutils.m4
+++ b/macros/gnome-fileutils.m4
@@ -250,11 +250,11 @@ AC_CACHE_VAL(fu_cv_sys_stat_statfs3_osf1,
#include <sys/param.h>
#include <sys/types.h>
#include <sys/mount.h>
-main ()
+int main ()
{
struct statfs fsd;
fsd.f_fsize = 0;
-exit (statfs (".", &fsd, sizeof (struct statfs)));
+return (statfs (".", &fsd, sizeof (struct statfs)));
}],
fu_cv_sys_stat_statfs3_osf1=yes,
fu_cv_sys_stat_statfs3_osf1=no,
@@ -281,11 +281,11 @@ AC_CACHE_VAL(fu_cv_sys_stat_statfs2_bsize,
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
-main ()
+int main ()
{
struct statfs fsd;
fsd.f_bsize = 0;
-exit (statfs (".", &fsd));
+return (statfs (".", &fsd));
}],
fu_cv_sys_stat_statfs2_bsize=yes,
fu_cv_sys_stat_statfs2_bsize=no,
@@ -303,10 +303,10 @@ AC_MSG_CHECKING([for four-argument statfs (AIX-3.2.5, SVR3)])
AC_CACHE_VAL(fu_cv_sys_stat_statfs4,
[AC_TRY_RUN([#include <sys/types.h>
#include <sys/statfs.h>
-main ()
+int main ()
{
struct statfs fsd;
-exit (statfs (".", &fsd, sizeof fsd, 0));
+return (statfs (".", &fsd, sizeof fsd, 0));
}],
fu_cv_sys_stat_statfs4=yes,
fu_cv_sys_stat_statfs4=no,
@@ -330,11 +330,11 @@ AC_CACHE_VAL(fu_cv_sys_stat_statfs2_fsize,
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
-main ()
+int main ()
{
struct statfs fsd;
fsd.f_fsize = 0;
-exit (statfs (".", &fsd));
+return (statfs (".", &fsd));
}],
fu_cv_sys_stat_statfs2_fsize=yes,
fu_cv_sys_stat_statfs2_fsize=no,
@@ -360,12 +360,12 @@ AC_CACHE_VAL(fu_cv_sys_stat_fs_data,
#ifdef HAVE_SYS_FS_TYPES_H
#include <sys/fs_types.h>
#endif
-main ()
+int main ()
{
struct fs_data fsd;
/* Ultrix's statfs returns 1 for success,
0 for not mounted, -1 for failure. */
-exit (statfs (".", &fsd) != 1);
+return (statfs (".", &fsd) != 1);
}],
fu_cv_sys_stat_fs_data=yes,
fu_cv_sys_stat_fs_data=no,