summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent/indent.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-24 17:40:27 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-24 17:40:27 +0000
commita7ebe6f54440366cb30cb94a7839406c2ae20e0e (patch)
tree44ad57416f4dfd418d4f80ae1e0712c672637127 /usr.bin/indent/indent.c
parentfe48a4f5d5b355d9e1838890f32ab5e5e7919173 (diff)
downloadFreeBSD-src-a7ebe6f54440366cb30cb94a7839406c2ae20e0e.zip
FreeBSD-src-a7ebe6f54440366cb30cb94a7839406c2ae20e0e.tar.gz
Remove deprecated register qualifier.
Diffstat (limited to 'usr.bin/indent/indent.c')
-rw-r--r--usr.bin/indent/indent.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c
index 62310fc..25c3635 100644
--- a/usr.bin/indent/indent.c
+++ b/usr.bin/indent/indent.c
@@ -81,7 +81,7 @@ main(int argc, char **argv)
int force_nl; /* when true, code must be broken */
int hd_type = 0; /* used to store type of stmt for if (...),
* for (...), etc */
- register int i; /* local loop counter */
+ int i; /* local loop counter */
int scase; /* set to true when we see a case, so we will
* know what to do with the following colon */
int sp_sw; /* when true, we are in the expressin of
@@ -251,8 +251,8 @@ main(int argc, char **argv)
parse(semicolon);
{
- register char *p = buf_ptr;
- register int col = 1;
+ char *p = buf_ptr;
+ int col = 1;
while (1) {
if (*p == ' ')
@@ -1072,7 +1072,7 @@ check_type:
if (strncmp(s_lab, "#if", 3) == 0) {
if (blanklines_around_conditional_compilation) {
- register int c;
+ int c;
prefix_blankline_requested++;
while ((c = getc(input)) == '\n');
ungetc(c, input);
OpenPOWER on IntegriCloud