From 3303f2a113384db1d7cbb785a5acc64bd260afba Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 26 Mar 2002 19:11:46 +0000 Subject: 2002-03-23 James A. Morrison * ifsock.c (main): Use ERR, not errno. * symlink.c: Include and . (main): Use err, not fprintf and exit. Use error, not perror and exit. Use err, not error. Check for MACH_PORT_NULL explicitly. Check for proper usage of symlink before checking if symlink is started as a translator. --- trans/ifsock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'trans/ifsock.c') diff --git a/trans/ifsock.c b/trans/ifsock.c index 319db6b3..4d7c4301 100644 --- a/trans/ifsock.c +++ b/trans/ifsock.c @@ -1,5 +1,5 @@ /* Server for S_IFSOCK nodes - Copyright (C) 1994, 1995, 2001 Free Software Foundation + Copyright (C) 1994, 1995, 2001, 02 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -89,8 +89,8 @@ main (int argc, char **argv) address_port = MACH_PORT_NULL; else { - errno = socket_fabricate_address (pflocal, AF_LOCAL, &address_port); - if (errno) + err = socket_fabricate_address (pflocal, AF_LOCAL, &address_port); + if (err) address_port = MACH_PORT_NULL; mach_port_deallocate (mach_task_self (), pflocal); } -- cgit v1.2.3