2002-04-23 Roland McGrath <roland@frob.com>
authorRoland McGrath <roland@gnu.org>
Tue, 23 Apr 2002 22:22:24 +0000 (22:22 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 23 Apr 2002 22:22:24 +0000 (22:22 +0000)
* sysdeps/mach/hurd/send.c: int -> size_t for WROTE.
* sysdeps/mach/hurd/sendto.c: Likewise.
* hurd/hurdioctl.c (siocgifconf): int -> size_t for DATA_LEN.
* sysdeps/mach/hurd/wait4.c (__wait4): natural_t -> int for SIGCODE.
* sysdeps/mach/hurd/getpriority.c: unsigned int -> size_t for PISIZE.

hurd/hurdioctl.c
sysdeps/mach/hurd/getpriority.c
sysdeps/mach/hurd/send.c
sysdeps/mach/hurd/sendto.c
sysdeps/mach/hurd/wait4.c

index 9fdb1bc0ccba09063c4c503092502d89ea18ba76..96d910ba1a69a99591c4a2b5641c0fcca8978e9c 100644 (file)
@@ -1,5 +1,5 @@
 /* ioctl commands which must be done in the C library.
-   Copyright (C) 1994,95,96,97,99,2001 Free Software Foundation, Inc.
+   Copyright (C) 1994,95,96,97,99,2001,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -311,7 +311,7 @@ static int
 siocgifconf (int fd, int request, struct ifconf *ifc)
 {
   error_t err;
-  int data_len = ifc->ifc_len;
+  size_t data_len = ifc->ifc_len;
   char *data = ifc->ifc_buf;
 
   if (data_len <= 0)
index e3016ee1d818a811bd802f2e8a8e0759658c510a..9fede4d2f0b5f9c53cf9d9113ed561fe2f94aeeb 100644 (file)
@@ -31,7 +31,7 @@ getpriority (enum __priority_which which, id_t who)
   int maxpri = INT_MIN;
   struct procinfo *pip;                /* Just for sizeof.  */
   int pibuf[sizeof *pip + 2 * sizeof (pip->threadinfos[0])], *pi = pibuf;
-  unsigned int pisize = sizeof pibuf / sizeof pibuf[0];
+  size_t pisize = sizeof pibuf / sizeof pibuf[0];
 
   error_t getonepriority (pid_t pid, struct procinfo *pip)
     {
@@ -40,7 +40,7 @@ getpriority (enum __priority_which which, id_t who)
       else
        {
          int *oldpi = pi;
-         unsigned int oldpisize = pisize;
+         size_t oldpisize = pisize;
          char *tw = 0;
          size_t twsz = 0;
          int flags = PI_FETCH_TASKINFO;
index a5d57b8c4b6bb15121b7e892058da7b3632e2490..69cec5512e9c260b577117e336d7d0fdbe1d2bf1 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1996, 1997, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1994,96,97,2001,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -31,7 +31,7 @@ __send (fd, buf, n, flags)
      int flags;
 {
   error_t err;
-  int wrote;
+  size_t wrote;
 
   err = HURD_DPORT_USE (fd, __socket_send (port, MACH_PORT_NULL,
                                           flags, buf, n,
index 70ea54c38e2200e80ab2a11bc9b392e9c74cbf0b..50bb77172c6ab43aa4905deaa71308457fb41794 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1995, 1996, 1997, 1999, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1994,95,96,97,99,2001,02 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@ sendto (int fd,
 {
   addr_port_t aport;
   error_t err;
-  int wrote;
+  size_t wrote;
 
   if (addr->sun_family == AF_LOCAL)
     {
index 2a6e82009706afa6cca93ab084ec3b0dfbd6ce1b..d9e23412ea7b905677b59fff0b2bd0fd309d6279 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993,94,95,96,97,98,99 Free Software Foundation, Inc.
+/* Copyright (C) 1993,94,95,96,97,98,99,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -29,7 +29,7 @@ __wait4 (pid_t pid, __WAIT_STATUS_DEFN stat_loc, int options,
   pid_t dead;
   error_t err;
   struct rusage ignored;
-  natural_t sigcode;
+  int sigcode;
   int dummy;
 
   err = __USEPORT (PROC, __proc_wait (port, pid, options,