diff options
author | 2015-10-13 16:37:17 +0000 | |
---|---|---|
committer | 2015-10-13 16:37:17 +0000 | |
commit | e5826585f03f5a2902dc5485ed05159c83ddd24d (patch) | |
tree | 671f1071e9c10be0630a70a413f324cc9b132f03 /usr.bin/diff/diffreg.c | |
parent | Put ASN1_dup() under #ifndef LIBRESSL_INTERNAL. (diff) | |
download | wireguard-openbsd-e5826585f03f5a2902dc5485ed05159c83ddd24d.tar.xz wireguard-openbsd-e5826585f03f5a2902dc5485ed05159c83ddd24d.zip |
Replace our /^\.\././ expression with /.//. The term is simpler and has
the same meaning in our diff ed-context.
As a bonus, our ed-diff output can be processed by GNU patch now, too.
okay millert@
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r-- | usr.bin/diff/diffreg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c index 8226ff803c8..cbac7796332 100644 --- a/usr.bin/diff/diffreg.c +++ b/usr.bin/diff/diffreg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diffreg.c,v 1.88 2015/10/05 20:15:00 millert Exp $ */ +/* $OpenBSD: diffreg.c,v 1.89 2015/10/13 16:37:17 tobias Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. @@ -1084,7 +1084,7 @@ proceed: * back and restart where we left off. */ diff_output(".\n"); - diff_output("%ds/^\\.\\././\n", a); + diff_output("%ds/.//\n", a); a += i; c += i; goto restart; |