diff options
author | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-05-01 16:32:07 +0000 |
---|---|---|
committer | Kevin Steves <stevesk@cvs.openbsd.org> | 2007-05-01 16:32:07 +0000 |
commit | 865944a235d7451dea683f7d3f7493bc07c3543f (patch) | |
tree | 984ae8e0b8d58ec032510695bf25315a07aef29d /usr.sbin/lpr/common_source | |
parent | 7fec95989520cc199d1739ad05ae3a1ff69543f0 (diff) |
remove #ifndef SUN_LEN; ok millert@
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r-- | usr.sbin/lpr/common_source/startdaemon.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/lpr/common_source/startdaemon.c b/usr.sbin/lpr/common_source/startdaemon.c index 2ee321f9a3b..c264340b1fe 100644 --- a/usr.sbin/lpr/common_source/startdaemon.c +++ b/usr.sbin/lpr/common_source/startdaemon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: startdaemon.c,v 1.11 2007/05/01 13:12:32 stevesk Exp $ */ +/* $OpenBSD: startdaemon.c,v 1.12 2007/05/01 16:32:06 stevesk Exp $ */ /* $NetBSD: startdaemon.c,v 1.10 1998/07/18 05:04:39 lukem Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static const char sccsid[] = "@(#)startdaemon.c 8.2 (Berkeley) 4/17/94"; #else -static const char rcsid[] = "$OpenBSD: startdaemon.c,v 1.11 2007/05/01 13:12:32 stevesk Exp $"; +static const char rcsid[] = "$OpenBSD: startdaemon.c,v 1.12 2007/05/01 16:32:06 stevesk Exp $"; #endif #endif /* not lint */ @@ -72,9 +72,6 @@ startdaemon(char *printer) memset(&un, 0, sizeof(un)); un.sun_family = AF_LOCAL; strlcpy(un.sun_path, _PATH_SOCKETNAME, sizeof(un.sun_path)); -#ifndef SUN_LEN -#define SUN_LEN(unp) (strlen((unp)->sun_path) + 2) -#endif siginterrupt(SIGINT, 1); PRIV_START; if (connect(s, (struct sockaddr *)&un, SUN_LEN(&un)) < 0) { |