diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-20 17:55:10 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-20 17:55:10 +0000 |
commit | 73c6870b18b8289171acd66d63bdd7ce8fb819b6 (patch) | |
tree | c6081460d17e593ae6ed744bc0f22972f9c9e461 /sbin/camcontrol | |
parent | b132efc524eb66518b26bf553bd07698212a0838 (diff) | |
download | FreeBSD-src-73c6870b18b8289171acd66d63bdd7ce8fb819b6.zip FreeBSD-src-73c6870b18b8289171acd66d63bdd7ce8fb819b6.tar.gz |
Remove 'register' keyword.
It does not help modern compilers, and some may take some hit from it.
(I also found several functions that listed *every* of its 10 local vars with
"register" -- just how many free registers do people think machines have?)
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 2 | ||||
-rw-r--r-- | sbin/camcontrol/modeedit.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 853b81c..2569388 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -1273,7 +1273,7 @@ readdefects(struct cam_device *device, int argc, char **argv, u_int32_t returned_length = 0; u_int32_t num_returned = 0; u_int8_t returned_format; - register int i; + int i; int c, error = 0; int lists_specified = 0; diff --git a/sbin/camcontrol/modeedit.c b/sbin/camcontrol/modeedit.c index 7614905..9e34a79 100644 --- a/sbin/camcontrol/modeedit.c +++ b/sbin/camcontrol/modeedit.c @@ -140,7 +140,7 @@ void mode_list(struct cam_device *device, int page_control, #define RTRIM(string) do { \ - register int _length; \ + int _length; \ while (isspace(string[_length = strlen(string) - 1])) \ string[_length] = '\0'; \ } while (0) |