aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 13:24:52 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-12 14:32:33 +0100
commit81e8f0a8a2329333a366c2e655c452ff6d90a833 (patch)
treede016fb24e7cc00e85d3e1a02d8d834645a1c128
parent752a3b2baaf5c0b5323271ef1e03a3609b487286 (diff)
l1if: Include string.h to fix possible coverity issue
Coverity warns about the below lines of code. strerror is supposed to return a char* and %s should work on char. Let's see if including string.h will make coverity more happy. The pre-processes file looked sane as well. LOGP(DL1IF, LOGL_ERROR, "error writing to L1 msg_queue: %s\n", strerror(errno)); Coverity: CID 1040951, CID 1040950, CID 1040952
-rw-r--r--src/sysmo_l1_hw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sysmo_l1_hw.c b/src/sysmo_l1_hw.c
index 87c2c55e..8351d68c 100644
--- a/src/sysmo_l1_hw.c
+++ b/src/sysmo_l1_hw.c
@@ -24,6 +24,7 @@
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>