diff options
author | Jim Meyering <jim@meyering.net> | 2005-04-07 17:12:27 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-04-07 17:12:27 +0000 |
commit | d55d4b6c81bf9d6dc77ae26467083406c4744240 (patch) | |
tree | a0edd84b149fcfedeb699e089c15b64a1ffb607f | |
parent | eb3520398ba1e16c16073203ee0761e5a9018599 (diff) | |
download | coreutils-d55d4b6c81bf9d6dc77ae26467083406c4744240.tar.xz |
(is_int, age_of, binop): Declare `char *' parameters to be `const'.
-rw-r--r-- | src/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test.c b/src/test.c index 345ea8ac3..282663857 100644 --- a/src/test.c +++ b/src/test.c @@ -144,7 +144,7 @@ integer_expected_error (char const *pch) valid number. Stuff the converted number into RESULT if RESULT is not null. */ static bool -is_int (char *string, intmax_t *result) +is_int (char const *string, intmax_t *result) { int sign; intmax_t value; @@ -212,7 +212,7 @@ is_int (char *string, intmax_t *result) /* Find the modification time of FILE, and stuff it into *AGE. Return true if successful. */ static bool -age_of (char *filename, time_t *age) +age_of (char const *filename, time_t *age) { struct stat finfo; bool ok = (stat (filename, &finfo) == 0); @@ -704,7 +704,7 @@ expr (void) /* Return true if S is one of the test command's binary operators. */ static bool -binop (char *s) +binop (char const *s) { return ((STREQ (s, "=")) || (STREQ (s, "!=")) || (STREQ (s, "-nt")) || (STREQ (s, "-ot")) || (STREQ (s, "-ef")) || (STREQ (s, "-eq")) || |