]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
unsigned -> unsigned int
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:58:22 +0000 (22:58 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2004 22:58:22 +0000 (22:58 +0000)
lib/human.c
lib/modechange.h
lib/sig2str.c

index dbf536b1efdd630c151934c2ecd4ca2dda49428f..f024c73ea079f93b7f8b9a3a1362e8db91454607 100644 (file)
@@ -300,8 +300,8 @@ human_readable (uintmax_t n, char *buf, int opts,
          {
            do
              {
-               unsigned r10 = (amt % base) * 10 + tenths;
-               unsigned r2 = (r10 % base) * 2 + (rounding >> 1);
+               unsigned int r10 = (amt % base) * 10 + tenths;
+               unsigned int r2 = (r10 % base) * 2 + (rounding >> 1);
                amt /= base;
                tenths = r10 / base;
                rounding = (r2 < base
index be2afa45c6a18dda0587ab6a20d7448017de87c3..8bf989455926ea90ae1973dcfdbcb307fce90650 100644 (file)
@@ -1,5 +1,5 @@
 /* modechange.h -- definitions for file mode manipulation
-   Copyright (C) 1989, 1990, 1997, 2003 Free Software Foundation, Inc.
+   Copyright (C) 1989, 1990, 1997, 2003, 2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -51,7 +51,7 @@ struct mode_change
 # define MODE_MEMORY_EXHAUSTED (struct mode_change *) 1
 # define MODE_BAD_REFERENCE (struct mode_change *) 2
 
-struct mode_change *mode_compile (const char *, unsigned);
+struct mode_change *mode_compile (const char *, unsigned int);
 struct mode_change *mode_create_from_ref (const char *);
 mode_t mode_adjust (mode_t, const struct mode_change *);
 void mode_free (struct mode_change *);
index f1eec22bf94c061df81bf7e2cf1fe72a595ee35e..15d969c868f50ab5448b765d648cd354281cf247 100644 (file)
@@ -1,6 +1,6 @@
 /* sig2str.c -- convert between signal names and numbers
 
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2004 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -253,7 +253,7 @@ static struct numname { int num; char const name[8]; } numname_table[] =
    POSIX says that only '0' through '9' are digits.  Prefer ISDIGIT to
    ISDIGIT_LOCALE unless it's important to use the locale's definition
    of `digit' even when the host does not conform to POSIX.  */
-#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
+#define ISDIGIT(c) ((unsigned int) (c) - '0' <= 9)
 
 /* Convert the signal name SIGNAME to a signal number.  Return the
    signal number if successful, -1 otherwise.  */
@@ -270,7 +270,7 @@ str2signum (char const *signame)
     }
   else
     {
-      unsigned i;
+      unsigned int i;
       for (i = 0; i < NUMNAME_ENTRIES; i++)
        if (strcmp (numname_table[i].name, signame) == 0)
          return numname_table[i].num;
@@ -315,7 +315,7 @@ str2sig (char const *signame, int *signum)
 int
 sig2str (int signum, char *signame)
 {
-  unsigned i;
+  unsigned int i;
   for (i = 0; i < NUMNAME_ENTRIES; i++)
     if (numname_table[i].num == signum)
       {