diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2017-02-11 08:00:51 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2017-02-11 08:00:51 +0000 |
commit | 4d6ca0e17d04f9fc9f53c1c6656659b0552f368a (patch) | |
tree | 1f08fa7eb7be7aea025aae6be6d0bf162a5dc3a7 /archivers/lha/files/patch-lharc.c | |
parent | Fix 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-lharc.c')
-rw-r--r-- | archivers/lha/files/patch-lharc.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/archivers/lha/files/patch-lharc.c b/archivers/lha/files/patch-lharc.c index 41c40de01872..7b309e08f42e 100644 --- a/archivers/lha/files/patch-lharc.c +++ b/archivers/lha/files/patch-lharc.c @@ -1,15 +1,15 @@ ---- src/lharc.c.orig Sun May 7 00:05:29 2000 -+++ src/lharc.c Fri Jul 28 19:35:31 2000 -@@ -889,6 +889,7 @@ - /* */ +--- src/lharc.c.orig 2000-10-05 17:33:34 UTC ++++ src/lharc.c +@@ -894,6 +894,7 @@ free_files(filec, filev) + /* */ /* ------------------------------------------------------------------------ */ /* Build temporary file name and store to TEMPORARY_NAME */ +#if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__OpenBSD__) void build_temporary_name() { -@@ -912,7 +913,7 @@ - mktemp(temporary_name); +@@ -925,7 +926,7 @@ build_temporary_name() + #endif #endif } - @@ -17,3 +17,12 @@ /* ------------------------------------------------------------------------ */ static void modify_filename_extention(buffer, ext) +@@ -1038,7 +1039,7 @@ open_old_archive() + else + return NULL; + } +- if (p = (char *) rindex(archive_name, '.')) { ++ if ((p = (char *) rindex(archive_name, '.'))) { + if (strucmp(".LZH", p) == 0 + || strucmp(".LZS", p) == 0 + || strucmp(".COM", p) == 0 /* DOS SFX */ |