aboutsummaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/test.c b/test.c
index 9c66cbb87..3404b02b4 100644
--- a/test.c
+++ b/test.c
@@ -158,21 +158,21 @@ static struct t_op const *t_wp_op;
158static gid_t *group_array = NULL; 158static gid_t *group_array = NULL;
159static int ngroups; 159static int ngroups;
160 160
161static enum token t_lex(); 161static enum token t_lex(char* s);
162static int oexpr(); 162static int oexpr(enum token n);
163static int aexpr(); 163static int aexpr(enum token n);
164static int nexpr(); 164static int nexpr(enum token n);
165static int binop(); 165static int binop(void);
166static int primary(); 166static int primary(enum token n);
167static int filstat(); 167static int filstat(char *nm, enum token mode);
168static int getn(); 168static int getn(const char *s);
169static int newerf(); 169static int newerf(const char *f1, const char *f2);
170static int olderf(); 170static int olderf(const char *f1, const char *f2);
171static int equalf(); 171static int equalf(const char *f1, const char *f2);
172static void syntax(); 172static void syntax(const char *op, const char *msg);
173static int test_eaccess(); 173static int test_eaccess(char *path, int mode);
174static int is_a_group_member(); 174static int is_a_group_member(gid_t gid);
175static void initialize_group_array(); 175static void initialize_group_array(void);
176 176
177extern int 177extern int
178test_main(int argc, char** argv) 178test_main(int argc, char** argv)
@@ -226,8 +226,8 @@ test_main(int argc, char** argv)
226 226
227static void 227static void
228syntax(op, msg) 228syntax(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 */
459static int 459static int
460getn(s) 460getn(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
481static int 481static int
482newerf (f1, f2) 482newerf (f1, f2)
483char *f1, *f2; 483const 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
492static int 492static int
493olderf (f1, f2) 493olderf (f1, f2)
494char *f1, *f2; 494const 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
503static int 503static int
504equalf (f1, f2) 504equalf (f1, f2)
505char *f1, *f2; 505const char *f1, *f2;
506{ 506{
507 struct stat b1, b2; 507 struct stat b1, b2;
508 508