tappease the gcc monster - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8477327a46979f9cfb839174a87ce51a085c3abd
 (DIR) parent 61b8c11b6659ec7eabbe9249fa9d0088f4c1b883
 (HTM) Author: rsc <devnull@localhost>
       Date:   Wed, 10 Aug 2005 18:14:40 +0000
       
       appease the gcc monster
       
       Diffstat:
         M src/cmd/getflags/getflags.c         |      16 ++++++++--------
       
       1 file changed, 8 insertions(+), 8 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/getflags/getflags.c b/src/cmd/getflags/getflags.c
       t@@ -70,7 +70,7 @@ bournearg(char *s)
        void
        rcprint(int argc, char *argv[])
        {
       -        register c, i, n;
       +        int c, i, n;
                for(c=0;c!=NFLAG;c++) if(flag[c]){
                        print("FLAG%c=", c);                /* bug -- c could be a bad char */
                        n=count(c, argv[1]);
       t@@ -106,14 +106,14 @@ rcprint(int argc, char *argv[])
        void
        usmsg(char *flagarg)
        {
       -        register char *s, *t, c;
       -        register count, nflag=0;
       +        char *s, *t, c;
       +        int count, nflag=0;
                print("echo Usage: $0'");
                for(s=flagarg;*s;){
                        c=*s;
                        if(*s++==' ') continue;
                        if(*s==':')
       -                        count = strtol(++s, &s, 10);
       +                        count = strtol(s+1, &s, 10);
                        else count=0;
                        if(count==0){
                                if(nflag==0) print(" [-");
       t@@ -133,7 +133,7 @@ usmsg(char *flagarg)
                        c=*s;
                        if(*s++==' ') continue;
                        if(*s==':')
       -                        count = strtol(++s, &s, 10);
       +                        count = strtol(s+1, &s, 10);
                        else count=0;
                        if(count!=0){
                                print(" [-");
       t@@ -166,13 +166,13 @@ usmsg(char *flagarg)
        int
        count(int flag, char *flagarg)
        {
       -        register char *s, c;
       -        register n;
       +        char *s, c;
       +        int n;
                for(s=flagarg;*s;){
                        c=*s;
                        if(*s++==' ') continue;
                        if(*s==':')
       -                        n = strtol(++s, &s, 10);
       +                        n = strtol(s+1, &s, 10);
                        else n=0;
                        if(*s=='['){
                                int depth=1;