summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-05-16 03:57:49 +0000
committerJim Meyering <jim@meyering.net>1996-05-16 03:57:49 +0000
commit8a623ebc610cc75c3e875a1e193cc21bae02fd89 (patch)
treecaa01a0884b2113d806fc9f064d4a5f426302b0e /lib
parentfce70ef38b611f95ceae183651bcfa1eecf4dadf (diff)
downloadcoreutils-8a623ebc610cc75c3e875a1e193cc21bae02fd89.tar.xz
(mode_compile): Declare parameter MODE_STRING const.
Remove register attribute. (mode_adjust): Likewise for CHANGES.
Diffstat (limited to 'lib')
-rw-r--r--lib/modechange.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/modechange.c b/lib/modechange.c
index 8eb8dc55d..5a009271e 100644
--- a/lib/modechange.c
+++ b/lib/modechange.c
@@ -72,7 +72,7 @@ static int oatoi ();
struct mode_change *
mode_compile (mode_string, masked_ops)
- register char *mode_string;
+ const char *mode_string;
unsigned masked_ops;
{
struct mode_change *head; /* First element of the linked list. */
@@ -244,7 +244,7 @@ invalid:
unsigned short
mode_adjust (oldmode, changes)
unsigned oldmode;
- register struct mode_change *changes;
+ const struct mode_change *changes;
{
unsigned short newmode; /* The adjusted mode and one operand. */
unsigned short value; /* The other operand. */