diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-07-21 12:08:22 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-07-21 12:09:03 +0200 |
commit | dd0d76be5fa86490d030dd8bb36aec54b4a752f8 (patch) | |
tree | 84743cda63fe841ae66da170e0901c4a13a4fee6 /src | |
parent | cfd6ac646224c59fc3f46c9e4ef9f7fecb6c1407 (diff) |
osmo_get_rand_id(): Avoid dead code by proper #if/#else/#endif
Change-Id: I34e465dead179487f7d4508e0e6ecf0e838c6eb7
Closes: CID#177910
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm/gsm_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gsm/gsm_utils.c b/src/gsm/gsm_utils.c index f154c2b6..365920fa 100644 --- a/src/gsm/gsm_utils.c +++ b/src/gsm/gsm_utils.c @@ -466,8 +466,9 @@ int osmo_get_rand_id(uint8_t *out, size_t len) if (rc < 0) { #if (USE_GNUTLS) return gnutls_rnd(GNUTLS_RND_RANDOM, out, len); -#endif +#else return -errno; +#endif } /* getrandom() failed partially due to signal interruption: |