From 1e9dc0393c67ff7eb2d7691931303e58dc112f5a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 20 Mar 1995 08:21:38 +0000 Subject: Mon Mar 20 03:19:23 1995 Roland McGrath * 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. --- hurd/ports-set.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hurd/ports-set.c') diff --git a/hurd/ports-set.c b/hurd/ports-set.c index fbc2940217..029970d5bb 100644 --- a/hurd/ports-set.c +++ b/hurd/ports-set.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 @@ -40,10 +40,10 @@ error_t (*_hurd_ports_setters[INIT_PORT_MAX]) (mach_port_t newport) = error_t -_hurd_ports_set (int which, mach_port_t newport) +_hurd_ports_set (unsigned int which, mach_port_t newport) { error_t err; - if (which < 0 || which >= _hurd_nports) + if (which >= _hurd_nports) return EINVAL; if (err = __mach_port_mod_refs (__mach_task_self (), newport, MACH_PORT_RIGHT_SEND, 1)) -- cgit 1.4.1