diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-09-15 18:58:47 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2017-09-15 20:24:16 +0200 |
commit | a11a464552736f813656ca17c30c355543cfa573 (patch) | |
tree | b0166ef692ee372f59759f7a49da3806810f02bc | |
parent | 823e711018f053b3878071fe84e929b0623ca08b (diff) |
smpp34_dumpBuf.c: remove unused variable
Fixes compilation warning below:
smpp34_dumpBuf.c:52:9: warning: variable ‘lefterror’ set but not used [-Wunused-but-set-variable]
int lefterror = 0;
Change-Id: Iea8ff80d3e4d16aaca6e37d64593b50fa27c8cfb
-rw-r--r-- | src/smpp34_dumpBuf.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/smpp34_dumpBuf.c b/src/smpp34_dumpBuf.c index 77dfdba..dd0bad4 100644 --- a/src/smpp34_dumpBuf.c +++ b/src/smpp34_dumpBuf.c @@ -49,14 +49,12 @@ smpp34_dumpBuf(uint8_t *dest, int destL, uint8_t *src, int srcL) int size; uint8_t ind = 3; uint8_t *buffer = NULL; - int lefterror = 0; size = srcL; buffer = src; memset(smpp34_strerror, 0, sizeof(smpp34_strerror)); ptrerror = smpp34_strerror; - lefterror = sizeof(smpp34_strerror); /* dump buffer character by character until size is reached */ for(i = 0; i < size; i++){ |