summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/recover.c
diff options
context:
space:
mode:
authormartijn <martijn@cvs.openbsd.org>2016-01-30 21:23:51 +0000
committermartijn <martijn@cvs.openbsd.org>2016-01-30 21:23:51 +0000
commite37fa6d215b2fdda463511b66a1c24c4b0f74933 (patch)
treed184a4d9d1749ff642e7748cd1b928166cff19af /usr.bin/vi/common/recover.c
parentc48e96ce5b369c46967962e9f9f62eab8c7060a4 (diff)
replace progname variable in gs structure with getprogname
OK zhuk@ and tb@
Diffstat (limited to 'usr.bin/vi/common/recover.c')
-rw-r--r--usr.bin/vi/common/recover.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/vi/common/recover.c b/usr.bin/vi/common/recover.c
index 6d6f1e15f23..98975a7cc79 100644
--- a/usr.bin/vi/common/recover.c
+++ b/usr.bin/vi/common/recover.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: recover.c,v 1.23 2016/01/06 22:28:52 millert Exp $ */
+/* $OpenBSD: recover.c,v 1.24 2016/01/30 21:23:50 martijn Exp $ */
/*-
* Copyright (c) 1993, 1994
@@ -397,8 +397,8 @@ rcv_mailfile(SCR *sp, int issync, char *cp_path)
" was editing a file named ", t, " on the machine ",
host, ", when it was saved for recovery. ",
"You can recover most, if not all, of the changes ",
- "to this file using the -r option to ", gp->progname, ":\n\n\t",
- gp->progname, " -r ", t);
+ "to this file using the -r option to ", getprogname(), ":\n\n\t",
+ getprogname(), " -r ", t);
if (len > sizeof(buf) - 1) {
lerr: msgq(sp, M_ERR, "Recovery file buffer overrun");
goto err;
@@ -555,7 +555,7 @@ rcv_list(SCR *sp)
next: (void)fclose(fp);
}
if (found == 0)
- (void)printf("%s: No files to recover\n", sp->gp->progname);
+ (void)printf("%s: No files to recover\n", getprogname());
(void)closedir(dirp);
return (0);
}