From 4d6ca0e17d04f9fc9f53c1c6656659b0552f368a Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Sat, 11 Feb 2017 08:00:51 +0000 Subject: - fix C warnings - split patches - make portlint happier --- archivers/lha/files/patch-patmatch.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 archivers/lha/files/patch-patmatch.c (limited to 'archivers/lha/files/patch-patmatch.c') 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)) -- cgit v1.2.3