diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1995-09-20 13:21:21 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1995-09-20 13:21:21 +0000 |
| commit | 25883984a45739b28a889a419f773dc7f8372adf (patch) | |
| tree | b5bba6f12adf25923160994076d5e8cdc9c9b946 | |
| parent | c0810b3cbcdd993ee08bb59d6d1bded22c4d743d (diff) | |
Notes
| -rw-r--r-- | usr.bin/tip/tip/pathnames.h | 2 | ||||
| -rw-r--r-- | usr.bin/tip/tip/uucplock.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/tip/pathnames.h b/usr.bin/tip/tip/pathnames.h index ef4197c19f42..abf1f330ad88 100644 --- a/usr.bin/tip/tip/pathnames.h +++ b/usr.bin/tip/tip/pathnames.h @@ -47,7 +47,7 @@ /* #define _PATH_LOCKDIRNAME "/etc/locks/LCK..%s" */ /* #define _PATH_LOCKDIRNAME "/usr/spool/locks/LCK..%s" */ /* #define _PATH_LOCKDIRNAME "/usr/spool/uucp/LCK/LCK..%s" */ -#define _PATH_LOCKDIRNAME "/var/spool/lock/LCK..%s" +#define _PATH_LOCKDIRNAME _PATH_LOCK "LCK..%s" /* Specify location for system wide databases diff --git a/usr.bin/tip/tip/uucplock.c b/usr.bin/tip/tip/uucplock.c index a61e124e1dc8..5c78bd45272b 100644 --- a/usr.bin/tip/tip/uucplock.c +++ b/usr.bin/tip/tip/uucplock.c @@ -71,7 +71,7 @@ uu_lock (char *ttyname) perror("lock open"); return(-1); } - if (get_pid (fd) == -1) { + if ((pid = get_pid (fd)) == -1) { (void)close(fd); perror("lock read"); return(-1); |
