ports/misc/orville-write/files/patch-lib_common.c
Dmitry Marakasov 4dd29f9c7e - Drop 8.x support
Approved by:	portmgr blanket
2015-09-22 03:46:11 +00:00

19 lines
479 B
C

--- lib_common.c.orig 2010-02-02 22:34:36.829638978 -0800
+++ lib_common.c 2010-02-02 22:36:28.170798539 -0800
@@ -141,13 +141,13 @@
* fail. The tty name need not be null terminated.
*/
-struct utmp *find_utmp(char *tty)
+struct utmpx *find_utmp(char *tty)
{
-struct utmp tmputmp;
+struct utmpx tmputmp;
strncpy(tmputmp.ut_line, tty, UT_LINESIZE);
setutent(); /* open and/or rewind */
- return getutline(&tmputmp);
+ return getutxline(&tmputmp);
}