File: fix-implicit-function-declarations.patch

package info (click to toggle)
filter 2.6.3%2Bds1-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,336 kB
  • sloc: ansic: 4,045; sh: 3,833; makefile: 158
file content (67 lines) | stat: -rw-r--r-- 1,925 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Description: Fix implicit function declarations by adding some includes
 Initial version of this patch (filter.c only) by Logan Rosen from
 Ubuntu.
 .
 audit.c, strtokq.c and istrcmp.c additions by Axel Beckert.
 .
 This also fixes a segfault during logging on 64-bit platforms as
 described on
 https://qa.debian.org/bls/bytag/E-pointer-trouble-at-implicit.html
Origin: https://launchpadlibrarian.net/219849413/filter_2.6.3-1_2.6.3-1ubuntu1.diff.gz
Author: Logan Rosen <logan@ubuntu.com>
Author: Axel Beckert <abe@debian.org>
Reviewed-By: Axel Beckert <abe@debian.org>
Last-Update: 2016-02-21
Bug-Debian: https://bugs.debian.org/815438

Index: filter/filter.c
===================================================================
--- filter.orig/filter.c	2016-02-21 15:55:37.914726554 +0100
+++ filter/filter.c	2016-02-21 15:55:37.914726554 +0100
@@ -111,6 +111,7 @@
 
 
 #include "version.h"
+#include "utils.h"
 
 void usage()
 {
Index: filter/audit.c
===================================================================
--- filter.orig/audit.c	2016-02-21 15:55:37.914726554 +0100
+++ filter/audit.c	2016-02-21 15:55:37.914726554 +0100
@@ -34,9 +34,7 @@
 #include <fcntl.h>
 #include <errno.h>
 
-#ifdef I_TIME
-#  include <time.h>
-#endif
+#include <time.h>
 #ifdef I_SYSTIME
 #  include <sys/time.h>
 #endif
Index: filter/strtokq.c
===================================================================
--- filter.orig/strtokq.c	2016-02-21 15:55:37.914726554 +0100
+++ filter/strtokq.c	2016-02-21 15:55:37.914726554 +0100
@@ -9,6 +9,7 @@
  */
 
 #include <stdio.h>
+#include <string.h>
 
 char *strtokq(source, keys, flag)
 char *source, *keys;
Index: filter/istrcmp.c
===================================================================
--- filter.orig/istrcmp.c	2016-02-19 18:42:52.667940498 +0100
+++ filter/istrcmp.c	2016-02-21 15:55:56.922656841 +0100
@@ -34,6 +34,7 @@
 
 **/
 
+#include "defs.h";
 
 int
 istrcmp(s1,s2)