]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(<limits.h>, UINT_MAX, UINT_MAX): Remove; now
authorJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:24:45 +0000 (10:24 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Nov 1997 10:24:45 +0000 (10:24 +0000)
done by system.h.

src/chgrp.c

index e948fc76e2e0d963bb69fbdf1ff383b4da57c769..4d8b3c2dbab9412716f34feec20fdc83b852d94b 100644 (file)
 #include <grp.h>
 #include <getopt.h>
 
-#if HAVE_LIMITS_H
-# include <limits.h>
-#endif
-
-#ifndef UINT_MAX
-# define UINT_MAX ((unsigned int) ~(unsigned int) 0)
-#endif
-
-#ifndef INT_MAX
-# define INT_MAX ((int) (UINT_MAX >> 1))
-#endif
-
 #include "system.h"
 #include "xstrtoul.h"
 #include "error.h"
@@ -255,7 +243,7 @@ change_dir_group (const char *dir, int group, const struct stat *statp)
   int errors = 0;
 
   errno = 0;
-  name_space = savedir (dir, statp->st_size);
+  name_space = savedir (dir, (unsigned int) statp->st_size);
   if (name_space == NULL)
     {
       if (errno)