diff options
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -158,21 +158,21 @@ static struct t_op const *t_wp_op; | |||
158 | static gid_t *group_array = NULL; | 158 | static gid_t *group_array = NULL; |
159 | static int ngroups; | 159 | static int ngroups; |
160 | 160 | ||
161 | static enum token t_lex(); | 161 | static enum token t_lex(char* s); |
162 | static int oexpr(); | 162 | static int oexpr(enum token n); |
163 | static int aexpr(); | 163 | static int aexpr(enum token n); |
164 | static int nexpr(); | 164 | static int nexpr(enum token n); |
165 | static int binop(); | 165 | static int binop(void); |
166 | static int primary(); | 166 | static int primary(enum token n); |
167 | static int filstat(); | 167 | static int filstat(char *nm, enum token mode); |
168 | static int getn(); | 168 | static int getn(const char *s); |
169 | static int newerf(); | 169 | static int newerf(const char *f1, const char *f2); |
170 | static int olderf(); | 170 | static int olderf(const char *f1, const char *f2); |
171 | static int equalf(); | 171 | static int equalf(const char *f1, const char *f2); |
172 | static void syntax(); | 172 | static void syntax(const char *op, const char *msg); |
173 | static int test_eaccess(); | 173 | static int test_eaccess(char *path, int mode); |
174 | static int is_a_group_member(); | 174 | static int is_a_group_member(gid_t gid); |
175 | static void initialize_group_array(); | 175 | static void initialize_group_array(void); |
176 | 176 | ||
177 | extern int | 177 | extern int |
178 | test_main(int argc, char** argv) | 178 | test_main(int argc, char** argv) |
@@ -226,8 +226,8 @@ test_main(int argc, char** argv) | |||
226 | 226 | ||
227 | static void | 227 | static void |
228 | syntax(op, msg) | 228 | syntax(op, msg) |
229 | char *op; | 229 | const char *op; |
230 | char *msg; | 230 | const char *msg; |
231 | { | 231 | { |
232 | if (op && *op) | 232 | if (op && *op) |
233 | error_msg_and_die("%s: %s", op, msg); | 233 | error_msg_and_die("%s: %s", op, msg); |
@@ -458,7 +458,7 @@ t_lex(s) | |||
458 | /* atoi with error detection */ | 458 | /* atoi with error detection */ |
459 | static int | 459 | static int |
460 | getn(s) | 460 | getn(s) |
461 | char *s; | 461 | const char *s; |
462 | { | 462 | { |
463 | char *p; | 463 | char *p; |
464 | long r; | 464 | long r; |
@@ -480,7 +480,7 @@ getn(s) | |||
480 | 480 | ||
481 | static int | 481 | static int |
482 | newerf (f1, f2) | 482 | newerf (f1, f2) |
483 | char *f1, *f2; | 483 | const char *f1, *f2; |
484 | { | 484 | { |
485 | struct stat b1, b2; | 485 | struct stat b1, b2; |
486 | 486 | ||
@@ -491,7 +491,7 @@ char *f1, *f2; | |||
491 | 491 | ||
492 | static int | 492 | static int |
493 | olderf (f1, f2) | 493 | olderf (f1, f2) |
494 | char *f1, *f2; | 494 | const char *f1, *f2; |
495 | { | 495 | { |
496 | struct stat b1, b2; | 496 | struct stat b1, b2; |
497 | 497 | ||
@@ -502,7 +502,7 @@ char *f1, *f2; | |||
502 | 502 | ||
503 | static int | 503 | static int |
504 | equalf (f1, f2) | 504 | equalf (f1, f2) |
505 | char *f1, *f2; | 505 | const char *f1, *f2; |
506 | { | 506 | { |
507 | struct stat b1, b2; | 507 | struct stat b1, b2; |
508 | 508 | ||