summaryrefslogtreecommitdiffstats
path: root/lib/libstand/gets.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libstand/gets.c')
-rw-r--r--lib/libstand/gets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libstand/gets.c b/lib/libstand/gets.c
index dec627d..cb0e755 100644
--- a/lib/libstand/gets.c
+++ b/lib/libstand/gets.c
@@ -45,8 +45,8 @@ __FBSDID("$FreeBSD$");
void
ngets(char *buf, int n)
{
- register int c;
- register char *lp;
+ int c;
+ char *lp;
for (lp = buf;;)
switch (c = getchar() & 0177) {
@@ -65,7 +65,7 @@ ngets(char *buf, int n)
}
break;
case 'r'&037: {
- register char *p;
+ char *p;
putchar('\n');
for (p = buf; p < lp; ++p)
OpenPOWER on IntegriCloud