Blame view

RIOT/pkg/libcoap/patches/0005-fix-old-style-function-declarations.patch 2.74 KB
a752c7ab   elopes   add first test an...
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
  From e6d36f466b2c1568cb4cfc3a3f1f9348e71db037 Mon Sep 17 00:00:00 2001
  From: Ludwig Knüpfer <ludwig.knuepfer@fu-berlin.de>
  Date: Tue, 15 Jul 2014 17:06:51 +0200
  Subject: [PATCH 5/9] fix old-style function declarations
  
  ---
   async.c | 2 +-
   debug.c | 2 +-
   debug.h | 2 +-
   net.c   | 4 ++--
   net.h   | 2 +-
   pdu.c   | 2 +-
   pdu.h   | 2 +-
   7 files changed, 8 insertions(+), 8 deletions(-)
  
  diff --git a/async.c b/async.c
  index 976bf63..21ab642 100644
  --- a/async.c
  +++ b/async.c
  @@ -97,5 +97,5 @@ coap_free_async(coap_async_state_t *s) {
   }
   
   #else
  -void does_not_exist();	/* make some compilers happy */
  +void does_not_exist(void);	/* make some compilers happy */
   #endif /* WITHOUT_ASYNC */
  diff --git a/debug.c b/debug.c
  index bff3f11..241a803 100644
  --- a/debug.c
  +++ b/debug.c
  @@ -38,7 +38,7 @@
   static coap_log_t maxlog = LOG_WARNING;	/* default maximum log level */
   
   coap_log_t 
  -coap_get_log_level() {
  +coap_get_log_level(void) {
     return maxlog;
   }
   
  diff --git a/debug.h b/debug.h
  index dde660d..b4dae5d 100644
  --- a/debug.h
  +++ b/debug.h
  @@ -30,7 +30,7 @@ typedef enum { LOG_EMERG=0, LOG_ALERT, LOG_CRIT, LOG_WARNING,
   #endif
   
   /** Returns the current log level. */
  -coap_log_t coap_get_log_level();
  +coap_log_t coap_get_log_level(void);
   
   /** Sets the log level to the specified value. */
   void coap_set_log_level(coap_log_t level);
  diff --git a/net.c b/net.c
  index 83097d1..035619c 100644
  --- a/net.c
  +++ b/net.c
  @@ -54,7 +54,7 @@
   time_t clock_offset;
   
   static inline coap_queue_t *
  -coap_malloc_node() {
  +coap_malloc_node(void) {
     return (coap_queue_t *)coap_malloc(sizeof(coap_queue_t));
   }
   
  @@ -238,7 +238,7 @@ coap_delete_all(coap_queue_t *queue) {
   }
   
   coap_queue_t *
  -coap_new_node() {
  +coap_new_node(void) {
     coap_queue_t *node;
     node = coap_malloc_node();
   
  diff --git a/net.h b/net.h
  index 59c7d59..38bc09a 100644
  --- a/net.h
  +++ b/net.h
  @@ -72,7 +72,7 @@ int coap_delete_node(coap_queue_t *node);
   void coap_delete_all(coap_queue_t *queue);
   
   /** Creates a new node suitable for adding to the CoAP sendqueue. */
  -coap_queue_t *coap_new_node();
  +coap_queue_t *coap_new_node(void);
   
   struct coap_resource_t;
   struct coap_context_t;
  diff --git a/pdu.c b/pdu.c
  index 04ef9c6..e3c9720 100644
  --- a/pdu.c
  +++ b/pdu.c
  @@ -123,7 +123,7 @@ coap_pdu_init(unsigned char type, unsigned char code,
   }
   
   coap_pdu_t *
  -coap_new_pdu() {
  +coap_new_pdu(void) {
     coap_pdu_t *pdu;
     
   #ifndef WITH_CONTIKI
  diff --git a/pdu.h b/pdu.h
  index a891086..5bf2164 100644
  --- a/pdu.h
  +++ b/pdu.h
  @@ -274,7 +274,7 @@ void coap_pdu_clear(coap_pdu_t *pdu, size_t size);
    * @deprecated This function allocates the maximum storage for each
    * PDU. Use coap_pdu_init() instead. 
    */
  -coap_pdu_t *coap_new_pdu();
  +coap_pdu_t *coap_new_pdu(void);
   
   void coap_delete_pdu(coap_pdu_t *);
   
  -- 
  2.0.1