summaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-04-11 16:32:47 +0200
committerHarald Welte <laforge@gnumonks.org>2011-04-12 21:50:46 +0200
commit0d20b635749dea8f056245f283ce571e65d8c2c7 (patch)
treef098d81654ae203a4f0810465f585f1727131084 /openbsc/src
parent81863cde8253b406e6f544938a1dd996d78c3825 (diff)
libabis: ipaccess: more robust ipaccess_idtag_name()
ipaccess_idtag_name() now takes a uint8_t as parameter which is the length of the type tag. This patch was suggested by Zecke.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/libabis/input/ipaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libabis/input/ipaccess.c b/openbsc/src/libabis/input/ipaccess.c
index e1e314b9b..c4c13d7fa 100644
--- a/openbsc/src/libabis/input/ipaccess.c
+++ b/openbsc/src/libabis/input/ipaccess.c
@@ -100,7 +100,7 @@ static const char *idtag_names[] = {
[IPAC_IDTAG_UNIT] = "Unit_ID",
};
-const char *ipaccess_idtag_name(int tag)
+const char *ipaccess_idtag_name(uint8_t tag)
{
if (tag >= ARRAY_SIZE(idtag_names))
return "unknown";