diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-05-28 22:28:26 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-29 22:24:29 -0700 |
commit | 5bf1b0e5f500b6b99a866da32dd9002219cac6d6 (patch) | |
tree | 4622863e7f28ad7f840d6a7096057286aee4e750 /src/fallback.h | |
parent | 3d19b549c8d9fc77597d0de95260e90f5dda2dae (diff) |
fix random lint issues
This only eliminates errors reported by `make lint`. It shouldn't cause any
functional changes.
This change does remove several functions that are unused. It also removes the
`desc_arr` variable which is both unused and out of date with reality.
Diffstat (limited to 'src/fallback.h')
-rw-r--r-- | src/fallback.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/fallback.h b/src/fallback.h index f167ff69..09e30142 100644 --- a/src/fallback.h +++ b/src/fallback.h @@ -7,7 +7,6 @@ // compiling several modules that include this header because they use symbols which are defined as // macros in <term.h>. // IWYU pragma: no_include <term.h> -#include <signal.h> #include <stdint.h> #include <unistd.h> // The following include must be kept despite what IWYU says. That's because of the interaction @@ -83,16 +82,6 @@ wchar_t *wcsndup(const wchar_t *in, size_t c); wchar_t *wcsndup(const wchar_t *in, size_t c); #endif -#ifndef HAVE_WCSLCAT -/// Appends src to string dst of size siz (unlike wcsncat, siz is the full size of dst, not space -/// left). At most siz-1 characters will be copied. Always NUL terminates (unless siz <= -/// wcslen(dst)). Returns wcslen(src) + MIN(siz, wcslen(initial dst)). If retval >= siz, -/// truncation occurred. -/// -/// This is the OpenBSD strlcat function, modified for wide characters, and renamed to reflect this -/// change. -size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t siz); -#endif #ifndef HAVE_WCSLCPY /// Copy src to string dst of size siz. At most siz-1 characters will be copied. Always NUL /// terminates (unless siz == 0). Returns wcslen(src); if retval >= siz, truncation occurred. @@ -103,7 +92,7 @@ size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t siz); #endif #ifndef HAVE_LRAND48_R -/// Datastructure for the lrand48_r fallback implementation. +/// Data structure for the lrand48_r fallback implementation. struct drand48_data { unsigned int seed; }; |