From 98c843107b167bb35a67eef26bc76a979a0478be Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 13 Jun 2001 19:17:16 +0000 Subject: 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=10209 --- macros/linger.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macros/linger.m4') diff --git a/macros/linger.m4 b/macros/linger.m4 index 1dfb89dc96..f1c7060398 100644 --- a/macros/linger.m4 +++ b/macros/linger.m4 @@ -10,11 +10,11 @@ AC_TRY_RUN([ struct linger li; -main () +int main () { li.l_onoff = 1; li.l_linger = 120; - exit (0); + return 0; } ],[ AC_DEFINE(HAVE_STRUCT_LINGER) -- cgit v1.2.3