File: 060_avoid-exit.patch

package info (click to toggle)
mrtg 2.17.10-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,216 kB
  • sloc: perl: 25,746; ansic: 4,568; sh: 1,518; php: 227; awk: 225; makefile: 196; csh: 49; exp: 16
file content (20 lines) | stat: -rw-r--r-- 902 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: configure.ac: Avoid implicit declaration of the exit function
             Future C compilers are likely to reject implicit function
             declarations by default.  This language feature was officially
             removed in 1999.
Author: Florian Weimer <fweimer@redhat.com>
Origin: https://github.com/oetiker/mrtg/pull/104
Last-Update: 2022-12-16
Index: mrtg/configure.ac
===================================================================
--- mrtg.orig/configure.ac
+++ mrtg/configure.ac
@@ -37,7 +37,7 @@ AC_CACHE_VAL(mr_cv_long_long_format_spec
                 char buffer[1000];
                 sprintf (buffer, "%${format}u", a);
                 sscanf (buffer, "%${format}u", &b);
-                exit (b!=a);
+                return b!=a;
             }
             ]])],[mr_cv_long_long_format_specifier="%${format}d"
             mr_cv_long_long_format="${format}d"