summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/tip/tip/pathnames.h2
-rw-r--r--usr.bin/tip/tip/uucplock.c2
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);