summaryrefslogtreecommitdiffstats
path: root/lib/route/link.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2011-04-10 08:24:12 (GMT)
committerThomas Graf <tgraf@suug.ch>2011-04-10 08:24:12 (GMT)
commit0893aafcec59219e5f125adff1a61e48b63f9c75 (patch)
treeace8b709caebc9c5966f9e2104db2cfc328d7faa /lib/route/link.c
parent23c27b473825f1c7a3651c9aa24afb685a6183a7 (diff)
downloadlibnl-0893aafcec59219e5f125adff1a61e48b63f9c75.zip
libnl-0893aafcec59219e5f125adff1a61e48b63f9c75.tar.gz
libnl-0893aafcec59219e5f125adff1a61e48b63f9c75.tar.bz2
link: Make return and argument type match
Diffstat (limited to 'lib/route/link.c')
-rw-r--r--lib/route/link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/link.c b/lib/route/link.c
index bfb4150..3f0109f 100644
--- a/lib/route/link.c
+++ b/lib/route/link.c
@@ -1351,7 +1351,7 @@ static const struct trans_tbl link_operstates[] = {
__ADD(IF_OPER_UP, up)
};
-char *rtnl_link_operstate2str(int st, char *buf, size_t len)
+char *rtnl_link_operstate2str(uint8_t st, char *buf, size_t len)
{
return __type2str(st, buf, len, link_operstates,
ARRAY_SIZE(link_operstates));
@@ -1375,7 +1375,7 @@ static const struct trans_tbl link_modes[] = {
__ADD(IF_LINK_MODE_DORMANT, dormant)
};
-char *rtnl_link_mode2str(int st, char *buf, size_t len)
+char *rtnl_link_mode2str(uint8_t st, char *buf, size_t len)
{
return __type2str(st, buf, len, link_modes, ARRAY_SIZE(link_modes));
}