summaryrefslogtreecommitdiffstats
path: root/package/socketcand/0001-Remove-inline-keyword.patch
blob: 92e8737ba0cffbd90ba506dc60d6b348f80bd7b8 (plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
From bdb3cd081a694f8f6924e399d944e32c1578235c Mon Sep 17 00:00:00 2001
From: Yegor Yefremov <yegorslists@googlemail.com>
Date: Wed, 22 Jul 2015 11:03:27 +0200
Subject: [PATCH] Remove inline keyword

Fixes GCC5.x compilation issues related to C99 inline semantics.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 socketcand.h    | 8 ++++----
 state_bcm.c     | 2 +-
 state_control.c | 2 +-
 state_isotp.c   | 2 +-
 state_raw.c     | 2 +-
 5 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/socketcand.h b/socketcand.h
index a287fe2..39eef83 100644
--- a/socketcand.h
+++ b/socketcand.h
@@ -27,10 +27,10 @@
 
 #undef DEBUG_RECEPTION
 
-inline void state_bcm();
-inline void state_raw();
-inline void state_isotp();
-inline void state_control();
+void state_bcm();
+void state_raw();
+void state_isotp();
+void state_control();
 
 extern int client_socket;
 extern char **interface_names;
diff --git a/state_bcm.c b/state_bcm.c
index c63a0a9..0c980fa 100644
--- a/state_bcm.c
+++ b/state_bcm.c
@@ -28,7 +28,7 @@ int sc = -1;
 fd_set readfds;
 struct timeval tv;
 
-inline void state_bcm() {
+void state_bcm() {
 	int i, ret;
 	struct sockaddr_can caddr;
 	socklen_t caddrlen = sizeof(caddr);
diff --git a/state_control.c b/state_control.c
index 5f62b74..baa9df6 100644
--- a/state_control.c
+++ b/state_control.c
@@ -17,7 +17,7 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-inline void state_control() {
+void state_control() {
 	char buf[MAXLEN];
 	int i, items;
 
diff --git a/state_isotp.c b/state_isotp.c
index ae66035..4005f94 100644
--- a/state_isotp.c
+++ b/state_isotp.c
@@ -24,7 +24,7 @@
 int si = -1;
 fd_set readfds;
 
-inline void state_isotp() {
+void state_isotp() {
 	int i, items, ret;
 
 	struct sockaddr_can addr;
diff --git a/state_raw.c b/state_raw.c
index 1bd2ece..99111ae 100644
--- a/state_raw.c
+++ b/state_raw.c
@@ -31,7 +31,7 @@ char ctrlmsg[CMSG_SPACE(sizeof(struct timeval)) + CMSG_SPACE(sizeof(__u32))];
 struct timeval tv;
 struct cmsghdr *cmsg;
 
-inline void state_raw() {
+void state_raw() {
 	char buf[MAXLEN];
 	int i, ret, items;
 
-- 
2.1.4

OpenPOWER on IntegriCloud