projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
137cf55
)
(argmatch): Add const attribute to parameters.
author
Jim Meyering
<jim@meyering.net>
Fri, 22 Dec 1995 05:17:31 +0000
(
05:17
+0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 22 Dec 1995 05:17:31 +0000
(
05:17
+0000)
(invalid_arg): Add const attribute to parameters.
lib/argmatch.c
patch
|
blob
|
history
diff --git
a/lib/argmatch.c
b/lib/argmatch.c
index
d632890
..
5777b27
100644
(file)
--- a/
lib/argmatch.c
+++ b/
lib/argmatch.c
@@
-37,8
+37,8
@@
extern char *program_name;
int
argmatch (arg, optlist)
- char *arg;
- c
har *
*optlist;
+ c
onst c
har *arg;
+ c
onst char *const
*optlist;
{
int i; /* Temporary index in OPTLIST. */
size_t arglen; /* Length of ARG. */
@@
-76,8
+76,8
@@
argmatch (arg, optlist)
void
invalid_arg (kind, value, problem)
- char *kind;
- char *value;
+ c
onst c
har *kind;
+ c
onst c
har *value;
int problem;
{
fprintf (stderr, "%s: ", program_name);