summaryrefslogtreecommitdiff
path: root/src/chgrp.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-11-30 10:24:45 +0000
committerJim Meyering <jim@meyering.net>1997-11-30 10:24:45 +0000
commit0f411474da3c368558be98b06daafc7c8a4f50be (patch)
tree84a2bffb28ef39809f6ce9bc8659ae7acf64f59c /src/chgrp.c
parentdcd4c05dfaeac27ea1ae101ccc3f47a9483a0fc5 (diff)
downloadcoreutils-0f411474da3c368558be98b06daafc7c8a4f50be.tar.xz
(<limits.h>, UINT_MAX, UINT_MAX): Remove; now
done by system.h.
Diffstat (limited to 'src/chgrp.c')
-rw-r--r--src/chgrp.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index e948fc76e..4d8b3c2db 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -23,18 +23,6 @@
#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)