diff options
author | Neal H. Walfield <neal@gnu.org> | 2002-03-26 19:11:46 +0000 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2002-03-26 19:11:46 +0000 |
commit | 3303f2a113384db1d7cbb785a5acc64bd260afba (patch) | |
tree | 9a3a3c31048e13ce86678d5d1d022c77eec66f83 /trans/ifsock.c | |
parent | e581cc5d90e80f713c9636bcb4a47cf9bbb73c23 (diff) |
2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>
* ifsock.c (main): Use ERR, not errno.
* symlink.c: Include <error.h> and <errno.h>.
(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.
Diffstat (limited to 'trans/ifsock.c')
-rw-r--r-- | trans/ifsock.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |