On Tue, Aug 31, 2010 at 07:29:16AM +0000, Mark Lumsden wrote:
> Remove unused variable, linkfail. Unused since v1.6.
> 
> ok?
> 
> mark
>

yup, it should have been removed in 1.6, ok gilles@ 

 
> Index: stat.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/stat/stat.c,v
> retrieving revision 1.15
> diff -u -p -r1.15 stat.c
> --- stat.c    29 Jun 2010 20:51:05 -0000      1.15
> +++ stat.c    31 Aug 2010 07:18:02 -0000
> @@ -141,7 +141,6 @@ int       format1(const struct stat *,    /* stat
>           int, int);
>  
>  char *timefmt;
> -int linkfail;
>  
>  #define addchar(s, c, nl) \
>       do { \
> @@ -164,7 +163,6 @@ main(int argc, char *argv[])
>       usestat = 0;
>       nonl = 0;
>       quiet = 0;
> -     linkfail = 0;
>       statfmt = NULL;
>       timefmt = NULL;
>  
> @@ -266,7 +264,6 @@ main(int argc, char *argv[])
>  
>               if (rc == -1) {
>                       errs = 1;
> -                     linkfail = 1;
>                       if (!quiet)
>                               warn("%s",
>                                   argc == 0 ? "(stdin)" : argv[0]);
> @@ -690,16 +687,14 @@ format1(const struct stat *st,
>                       snprintf(path, sizeof(path), " -> ");
>                       l = readlink(file, path + 4, sizeof(path) - 4 - 1);
>                       if (l == -1) {
> -                             linkfail = 1;
>                               l = 0;
>                               path[0] = '\0';
>                       }
>                       path[l + 4] = '\0';
>                       sdata = path + (ofmt == FMTF_STRING ? 0 : 4);
> -             } else {
> -                     linkfail = 1;
> +             } else
>                       sdata = "";
> -             }
> +
>               formats = FMTF_STRING;
>               if (ofmt == 0)
>                       ofmt = FMTF_STRING;
> 

-- 
Gilles Chehade
freelance developer/sysadmin/consultant

                   http://www.poolp.org

Reply via email to