aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-08 22:35:36 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2017-07-08 22:35:36 -0800
commitfcd70be6074b2a56f6b2c92e02d968e530c9b80a (patch)
treef2e244fd75808bf5ad0c8559938a9b8642f5ef76 /src
parent83a5fe5cfd48bf46896a29a15669021945e126f4 (diff)
downloadsecurecoreutils-fcd70be6074b2a56f6b2c92e02d968e530c9b80a.tar.gz
securecoreutils-fcd70be6074b2a56f6b2c92e02d968e530c9b80a.tar.bz2
securecoreutils-fcd70be6074b2a56f6b2c92e02d968e530c9b80a.tar.xz
securecoreutils-fcd70be6074b2a56f6b2c92e02d968e530c9b80a.zip
Removing helpers.h from LZW library.
Diffstat (limited to 'src')
-rw-r--r--src/lzw/helpers.h24
-rw-r--r--src/lzw/lzw_internal.h2
2 files changed, 1 insertions, 25 deletions
diff --git a/src/lzw/helpers.h b/src/lzw/helpers.h
deleted file mode 100644
index 4ba45f7..0000000
--- a/src/lzw/helpers.h
+++ /dev/null
@@ -1,24 +0,0 @@
1/*
2 * Written by Mike Frysinger <vapier@gmail.com>
3 * Released into the public domain
4 */
5
6#ifndef _LIBLZW_HELPERS_H
7#define _LIBLZW_HELPERS_H
8
9#define _warn(fmt, args...) fprintf(stderr, fmt , ## args)
10#define warn(fmt, args...) _warn("liblzw: " fmt "\n" , ## args)
11#define warnf(fmt, args...) warn("%s(): " fmt, __FUNCTION__ , ## args)
12#define warnp(fmt, args...) warn(fmt ": %s" , ## args , strerror(errno))
13#define warnfp(fmt, args...) warnp("%s(): " fmt, __FUNCTION__ , ## args)
14
15#define dumphex(buf, cnt) \
16 do { \
17 size_t i = 0; \
18 _warn("dumphex: "); \
19 while (i < cnt) \
20 _warn("%2.2X ", buf[i++]); \
21 _warn("\n"); \
22 } while (0)
23
24#endif /* _LIBLZW_HELPERS_H */
diff --git a/src/lzw/lzw_internal.h b/src/lzw/lzw_internal.h
index 14db19c..5d4f9dc 100644
--- a/src/lzw/lzw_internal.h
+++ b/src/lzw/lzw_internal.h
@@ -11,6 +11,6 @@
11#define __IN_LIBLZW 11#define __IN_LIBLZW
12#include "lzw.h" 12#include "lzw.h"
13 13
14#include "helpers.h" 14//#include "helpers.h"
15 15
16#endif /* _LIBLZW_INTERNAL_H */ 16#endif /* _LIBLZW_INTERNAL_H */