summary refs log tree commit diff
path: root/hurd/ports-get.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-20 08:21:38 +0000
committerRoland McGrath <roland@gnu.org>1995-03-20 08:21:38 +0000
commit1e9dc0393c67ff7eb2d7691931303e58dc112f5a (patch)
treedeff3cdd7fcc4348770e8dca2c76b045bb526f24 /hurd/ports-get.c
parentbe69ea41ebade5819509b32e1b41ce1853392611 (diff)
downloadglibc-1e9dc0393c67ff7eb2d7691931303e58dc112f5a.tar.gz
glibc-1e9dc0393c67ff7eb2d7691931303e58dc112f5a.tar.xz
glibc-1e9dc0393c67ff7eb2d7691931303e58dc112f5a.zip
Mon Mar 20 03:19:23 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
	* stdio/vfscanf.c (%n): Use READ_IN - 1, so as not to count the
 	read-ahead character.

	* hurd/dtable.c, hurd/getdport.c, hurd/hurd.h, hurd/hurdexec.c,
	  hurd/hurdinit.c, hurd/hurdprio.c, hurd/hurdsock.c,
	  hurd/ports-get.c, hurd/ports-set.c, hurd/setauth.c,
	  hurd/setuids.c, sysdeps/mach/hurd/i386/trampoline.c:
	Get anal with unsigned to pacify compiler.
Diffstat (limited to 'hurd/ports-get.c')
-rw-r--r--hurd/ports-get.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hurd/ports-get.c b/hurd/ports-get.c
index def59731c5..e45494ac91 100644
--- a/hurd/ports-get.c
+++ b/hurd/ports-get.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1995 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
@@ -32,9 +32,9 @@ error_t (*_hurd_ports_getters[INIT_PORT_MAX]) (mach_port_t *result) =
   };
 
 error_t
-_hurd_ports_get (int which, mach_port_t *result)
+_hurd_ports_get (unsigned int which, mach_port_t *result)
 {
-  if (which < 0 || which >= _hurd_nports)
+  if (which >= _hurd_nports)
     return EINVAL;
   if (which >= INIT_PORT_MAX || _hurd_ports_getters[which] == NULL)
     return HURD_PORT_USE (&_hurd_ports[which],