File tree 14 files changed +26
-26
lines changed
14 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ static long send_query_recvcnt = 0;
103
103
static int hostname_maxlen = 0xFF ;
104
104
105
105
void
106
- client_init ()
106
+ client_init (void )
107
107
{
108
108
running = 1 ;
109
109
rand_seed = ((unsigned int ) rand ()) & 0xFFFF ;
@@ -124,13 +124,13 @@ client_init()
124
124
}
125
125
126
126
void
127
- client_stop ()
127
+ client_stop (void )
128
128
{
129
129
running = 0 ;
130
130
}
131
131
132
132
enum connection
133
- client_get_conn ()
133
+ client_get_conn (void )
134
134
{
135
135
return conn ;
136
136
}
@@ -175,7 +175,7 @@ client_set_qtype(char *qtype)
175
175
}
176
176
177
177
char *
178
- client_get_qtype ()
178
+ client_get_qtype (void )
179
179
{
180
180
char * c = "UNDEFINED" ;
181
181
@@ -225,7 +225,7 @@ client_set_hostname_maxlen(int i)
225
225
}
226
226
227
227
const char *
228
- client_get_raw_addr ()
228
+ client_get_raw_addr (void )
229
229
{
230
230
return format_addr (& raw_serv , raw_serv_len );
231
231
}
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ do_pidfile(char *pidfile)
276
276
}
277
277
278
278
void
279
- do_detach ()
279
+ do_detach (void )
280
280
{
281
281
#ifndef WINDOWS32
282
282
fprintf (stderr , "Detaching from terminal...\n" );
Original file line number Diff line number Diff line change 20
20
static struct fw_query fwq [FW_QUERY_CACHE_SIZE ];
21
21
static int fwq_ix ;
22
22
23
- void fw_query_init ()
23
+ void fw_query_init (void )
24
24
{
25
25
memset (fwq , 0 , sizeof (struct fw_query ) * FW_QUERY_CACHE_SIZE );
26
26
fwq_ix = 0 ;
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ START_TEST(test_base32_blksize)
119
119
END_TEST
120
120
121
121
TCase *
122
- test_base32_create_tests ()
122
+ test_base32_create_tests (void )
123
123
{
124
124
TCase * tc ;
125
125
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ START_TEST(test_base64_blksize)
132
132
END_TEST
133
133
134
134
TCase *
135
- test_base64_create_tests ()
135
+ test_base64_create_tests (void )
136
136
{
137
137
TCase * tc ;
138
138
Original file line number Diff line number Diff line change @@ -281,7 +281,7 @@ START_TEST(test_parse_format_ipv4_mapped_ipv6)
281
281
END_TEST
282
282
283
283
TCase *
284
- test_common_create_tests ()
284
+ test_common_create_tests (void )
285
285
{
286
286
TCase * tc ;
287
287
int sock ;
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ dump_packet(char *buf, size_t len)
250
250
}
251
251
252
252
TCase *
253
- test_dns_create_tests ()
253
+ test_dns_create_tests (void )
254
254
{
255
255
TCase * tc ;
256
256
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ START_TEST(test_build_hostname)
93
93
END_TEST
94
94
95
95
TCase *
96
- test_encoding_create_tests ()
96
+ test_encoding_create_tests (void )
97
97
{
98
98
TCase * tc ;
99
99
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ START_TEST(test_fw_query_edge)
76
76
END_TEST
77
77
78
78
TCase *
79
- test_fw_query_create_tests ()
79
+ test_fw_query_create_tests (void )
80
80
{
81
81
TCase * tc ;
82
82
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ START_TEST(test_login_hash_short)
59
59
END_TEST
60
60
61
61
TCase *
62
- test_login_create_tests ()
62
+ test_login_create_tests (void )
63
63
{
64
64
TCase * tc ;
65
65
Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ END_TEST
270
270
271
271
272
272
TCase *
273
- test_read_create_tests ()
273
+ test_read_create_tests (void )
274
274
{
275
275
TCase * tc ;
276
276
Original file line number Diff line number Diff line change 24
24
#include "test.h"
25
25
26
26
int
27
- main ()
27
+ main (void )
28
28
{
29
29
SRunner * runner ;
30
30
Suite * iodine ;
Original file line number Diff line number Diff line change 18
18
#ifndef __TEST_H__
19
19
#define __TEST_H__
20
20
21
- TCase * test_base32_create_tests ();
22
- TCase * test_base64_create_tests ();
23
- TCase * test_common_create_tests ();
24
- TCase * test_dns_create_tests ();
25
- TCase * test_encoding_create_tests ();
26
- TCase * test_read_create_tests ();
27
- TCase * test_login_create_tests ();
28
- TCase * test_user_create_tests ();
29
- TCase * test_fw_query_create_tests ();
21
+ TCase * test_base32_create_tests (void );
22
+ TCase * test_base64_create_tests (void );
23
+ TCase * test_common_create_tests (void );
24
+ TCase * test_dns_create_tests (void );
25
+ TCase * test_encoding_create_tests (void );
26
+ TCase * test_read_create_tests (void );
27
+ TCase * test_login_create_tests (void );
28
+ TCase * test_user_create_tests (void );
29
+ TCase * test_fw_query_create_tests (void );
30
30
31
31
char * va_str (const char * , ...);
32
32
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ START_TEST(test_find_available_user_small_net)
170
170
END_TEST
171
171
172
172
TCase *
173
- test_user_create_tests ()
173
+ test_user_create_tests (void )
174
174
{
175
175
TCase * tc ;
176
176
You can’t perform that action at this time.
0 commit comments