Use the pathnames from pathnames.h rather than hardcoding them here.
Add RCSIDs.
This commit is contained in:
parent
f33f907ea4
commit
cc66bbda3c
@ -36,12 +36,14 @@
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)wwenviron.c 8.1 (Berkeley) 6/6/93";
|
||||
static char rcsid[] = "@(#)$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
|
||||
#include "ww.h"
|
||||
#if !defined(OLD_TTY) && !defined(TIOCSCTTY) && !defined(TIOCNOTTY)
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
#include <paths.h>
|
||||
#include <signal.h>
|
||||
|
||||
/*
|
||||
@ -57,7 +59,7 @@ register struct ww *wp;
|
||||
char buf[1024];
|
||||
|
||||
#ifndef TIOCSCTTY
|
||||
if ((i = open("/dev/tty", 0)) < 0)
|
||||
if ((i = open(_PATH_TTY, 0)) < 0)
|
||||
goto bad;
|
||||
if (ioctl(i, TIOCNOTTY, (char *)0) < 0)
|
||||
goto bad;
|
||||
|
@ -36,6 +36,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static char sccsid[] = "@(#)wwterminfo.c 8.1 (Berkeley) 6/6/93";
|
||||
static char rcsid[] = "@(#)$FreeBSD$";
|
||||
#endif /* not lint */
|
||||
|
||||
#ifdef TERMINFO
|
||||
@ -80,7 +81,7 @@ wwterminfoinit()
|
||||
WWT_TERMCAP, wwncol, wwnrow, wwwintermcap);
|
||||
(void) fclose(fp);
|
||||
(void) sprintf(buf,
|
||||
"cd %s; %s cap >info 2>/dev/null; %s info >/dev/null 2>&1",
|
||||
"cd %s; %s cap >info 2>" _PATH_DEVNULL "; %s info >" _PATH_DEVNULL " 2>&1",
|
||||
wwterminfopath, _PATH_CAPTOINFO, _PATH_TIC);
|
||||
(void) system(buf);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user