Hi, Since patch(1) no longer invokes ed(1), pathnames.h can be removed. _PATH_TMP is still used inside patch.c but including paths.h is sufficient.
Comments? OK? diff --git usr.bin/patch/patch.c usr.bin/patch/patch.c index fef7df6466e..af142599340 100644 --- usr.bin/patch/patch.c +++ usr.bin/patch/patch.c @@ -33,6 +33,7 @@ #include <ctype.h> #include <getopt.h> #include <limits.h> +#include <paths.h> #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -42,7 +43,6 @@ #include "pch.h" #include "inp.h" #include "backupfile.h" -#include "pathnames.h" #include "ed.h" mode_t filemode = 0644; diff --git usr.bin/patch/pathnames.h usr.bin/patch/pathnames.h deleted file mode 100644 index 397e3fabe37..00000000000 --- usr.bin/patch/pathnames.h +++ /dev/null @@ -1,11 +0,0 @@ -/* $OpenBSD: pathnames.h,v 1.1 2003/07/29 20:10:17 millert Exp $ */ - -/* - * Placed in the public domain by Todd C. Miller <[email protected]> - * on July 29, 2003. - */ - -#include <paths.h> - -#define _PATH_ED "/bin/ed" -#define _PATH_MKDIR "/bin/mkdir" diff --git usr.bin/patch/pch.c usr.bin/patch/pch.c index 539754d814b..ac0645fe434 100644 --- usr.bin/patch/pch.c +++ usr.bin/patch/pch.c @@ -41,7 +41,6 @@ #include "common.h" #include "util.h" #include "pch.h" -#include "pathnames.h" /* Patch (diff listing) abstract type. */ diff --git usr.bin/patch/util.c usr.bin/patch/util.c index f9d47906300..2ab5f1f0e28 100644 --- usr.bin/patch/util.c +++ usr.bin/patch/util.c @@ -43,7 +43,6 @@ #include "common.h" #include "util.h" #include "backupfile.h" -#include "pathnames.h" /* Rename a file, copying it if necessary. */
