summaryrefslogtreecommitdiff
path: root/archivers/lha/files/patch-patmatch.c
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2017-02-11 08:00:51 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2017-02-11 08:00:51 +0000
commit4d6ca0e17d04f9fc9f53c1c6656659b0552f368a (patch)
tree1f08fa7eb7be7aea025aae6be6d0bf162a5dc3a7 /archivers/lha/files/patch-patmatch.c
parentFix clang39 dependency on editors/codelite (diff)
- fix C warnings
- split patches - make portlint happier
Notes
Notes: svn path=/head/; revision=433839
Diffstat (limited to 'archivers/lha/files/patch-patmatch.c')
-rw-r--r--archivers/lha/files/patch-patmatch.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivers/lha/files/patch-patmatch.c b/archivers/lha/files/patch-patmatch.c
new file mode 100644
index 000000000000..81952985e802
--- /dev/null
+++ b/archivers/lha/files/patch-patmatch.c
@@ -0,0 +1,11 @@
+--- src/patmatch.c.orig 2000-10-04 14:57:38 UTC
++++ src/patmatch.c
+@@ -20,7 +20,7 @@ patmatch(p, s, f)
+ {
+ char pc; /* a single character from pattern */
+
+- while (pc = ((f && islower(*p)) ? toupper(*p++) : *p++)) {
++ while ((pc = ((f && islower(*p)) ? toupper(*p++) : *p++))) {
+ if (pc == '*') {
+ do { /* look for match till s exhausted */
+ if (patmatch(p, s, f))