bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/7] maint: remove crypt.[ch] stubs


From: Jim Meyering
Subject: [PATCH 4/7] maint: remove crypt.[ch] stubs
Date: Mon, 9 May 2011 20:05:19 +0200

From: Jim Meyering <address@hidden>

* Makefile.am (gzip_SOURCES): Remove crypt.c
(EXTRA_DIST): Remove crypt.h
* crypt.c, crypt.h: Remove files.
* unpack.c: Don't #include "crypt.h"
* zip.c: Likewise
* util.c: Likewise.
* unzip.c: Likewise.
---
 Makefile.am |    4 ++--
 crypt.c     |    5 -----
 crypt.h     |   12 ------------
 unpack.c    |    1 -
 unzip.c     |    1 -
 util.c      |    1 -
 zip.c       |    1 -
 7 files changed, 2 insertions(+), 23 deletions(-)
 delete mode 100644 crypt.c
 delete mode 100644 crypt.h

diff --git a/Makefile.am b/Makefile.am
index b93403d..c035410 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -40,7 +40,7 @@ EXTRA_DIST = $(ACINCLUDE_INPUTS) $(man_MANS) \
   cfg.mk       \
   dist-check.mk        \
   algorithm.doc amiga/match.a amiga/Makefile.gcc amiga/Makefile.sasc \
-  amiga/tailor.c amiga/utime.h atari/Makefile.st crypt.h \
+  amiga/tailor.c amiga/utime.h atari/Makefile.st \
   gunzip.in gzexe.in gzip.doc msdos/match.asm msdos/tailor.c \
   msdos/gzip.prj msdos/doturboc.bat msdos/Makefile.msc msdos/Makefile.bor \
   msdos/Makefile.djg nt/Makefile.nt os2/gzip.def os2/Makefile.os2 \
@@ -56,7 +56,7 @@ bin_PROGRAMS = gzip
 bin_SCRIPTS = gunzip gzexe zcat zcmp zdiff \
   zegrep zfgrep zforce zgrep zless zmore znew
 gzip_SOURCES = \
-  bits.c crypt.c deflate.c gzip.c inflate.c lzw.c \
+  bits.c deflate.c gzip.c inflate.c lzw.c \
   trees.c unlzh.c unlzw.c unpack.c unzip.c util.c zip.c
 gzip_LDADD = libver.a lib/libgzip.a
 gzip_LDADD += $(LIB_CLOCK_GETTIME)
diff --git a/crypt.c b/crypt.c
deleted file mode 100644
index ff14a7b..0000000
--- a/crypt.c
+++ /dev/null
@@ -1,5 +0,0 @@
-/* crypt.c (dummy version) -- do not perform encryption
- * Hardly worth copyrighting :-)
- */
-#include <config.h>
-typedef int dummy;
diff --git a/crypt.h b/crypt.h
deleted file mode 100644
index 2a4c203..0000000
--- a/crypt.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/* crypt.h (dummy version) -- do not perform encryption
- * Hardly worth copyrighting :-)
- */
-
-#ifdef CRYPT
-#  undef CRYPT      /* dummy version */
-#endif
-
-#define RAND_HEAD_LEN  12  /* length of encryption random header */
-
-#define zencode
-#define zdecode
diff --git a/unpack.c b/unpack.c
index 276e925..947d7a5 100644
--- a/unpack.c
+++ b/unpack.c
@@ -20,7 +20,6 @@
 #include <config.h>
 #include "tailor.h"
 #include "gzip.h"
-#include "crypt.h"

 #define MIN(a,b) ((a) <= (b) ? (a) : (b))
 /* The arguments must not have side effects. */
diff --git a/unzip.c b/unzip.c
index c481a89..302194c 100644
--- a/unzip.c
+++ b/unzip.c
@@ -31,7 +31,6 @@
 #include <config.h>
 #include "tailor.h"
 #include "gzip.h"
-#include "crypt.h"

 /* PKZIP header definitions */
 #define LOCSIG 0x04034b50L      /* four-byte lead-in (lsb first) */
diff --git a/util.c b/util.c
index 12e37c0..58e0092 100644
--- a/util.c
+++ b/util.c
@@ -31,7 +31,6 @@
 #include <errno.h>

 #include "gzip.h"
-#include "crypt.h"
 #include <xalloc.h>

 #ifndef CHAR_BIT
diff --git a/zip.c b/zip.c
index b205cd9..28f7372 100644
--- a/zip.c
+++ b/zip.c
@@ -22,7 +22,6 @@

 #include "tailor.h"
 #include "gzip.h"
-#include "crypt.h"

 #include <unistd.h>
 #include <fcntl.h>
-- 
1.7.5.1.354.g761178




reply via email to

[Prev in Thread] Current Thread [Next in Thread]