From 106d71ca72009555093521084b30844325be807b Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 5 May 2022 18:29:37 -0700 Subject: [PATCH] neatogen: remove unused 'rk_strerror' and 'rk_error' These do _not_ appear to be the errors returned by randomkit.c at all. --- lib/neatogen/randomkit.c | 6 ------ lib/neatogen/randomkit.h | 9 --------- 2 files changed, 15 deletions(-) diff --git a/lib/neatogen/randomkit.c b/lib/neatogen/randomkit.c index 848879c27..7f1d43c11 100644 --- a/lib/neatogen/randomkit.c +++ b/lib/neatogen/randomkit.c @@ -79,12 +79,6 @@ #define RK_DEV_RANDOM "/dev/random" #endif -char *rk_strerror[RK_ERR_MAX] = -{ - "no error", - "random device unvavailable" -}; - void rk_seed(unsigned long seed, rk_state *state) { diff --git a/lib/neatogen/randomkit.h b/lib/neatogen/randomkit.h index 3ffe4a301..4e98a8cd5 100644 --- a/lib/neatogen/randomkit.h +++ b/lib/neatogen/randomkit.h @@ -94,15 +94,6 @@ typedef struct rk_state_ } rk_state; -typedef enum { - RK_NOERR = 0, /* no error */ - RK_ENODEV = 1, /* no RK_DEV_RANDOM device */ - RK_ERR_MAX = 2 -} rk_error; - -/* error strings */ -extern char *rk_strerror[RK_ERR_MAX]; - /* Maximum generated random value */ #define RK_MAX 0xFFFFFFFFUL -- 2.40.0