about summary refs log tree commit diff
path: root/hurd/getdport.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/getdport.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/getdport.c')
-rw-r--r--hurd/getdport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/getdport.c b/hurd/getdport.c
index 884deaa868..2204db2ce3 100644
--- a/hurd/getdport.c
+++ b/hurd/getdport.c
@@ -37,7 +37,7 @@ __getdport (int fd)
     /* Never had a descriptor table.  */
     return EBADF;
 
-  if (fd < 0 || fd > _hurd_init_dtablesize ||
+  if (fd < 0 || (unsigned int) fd > _hurd_init_dtablesize ||
       _hurd_init_dtable[fd] == MACH_PORT_NULL)
     {
       errno = EBADF;