summaryrefslogtreecommitdiffstats
path: root/include/netlink/utils.h
diff options
context:
space:
mode:
authorКоренберг Марк <mark@ideco.ru>2012-08-28 12:39:14 (GMT)
committerКоренберг Марк <mark@ideco.ru>2012-08-28 12:59:59 (GMT)
commit25d640da4a132f36ba28791e96b856cdcb899528 (patch)
tree273a1077502049fd1cc305d87c70180bea6b7f51 /include/netlink/utils.h
parenta0f1c0e281ee78ab8ee874bbb6c2140c12101284 (diff)
downloadlibnl-25d640da4a132f36ba28791e96b856cdcb899528.zip
libnl-25d640da4a132f36ba28791e96b856cdcb899528.tar.gz
libnl-25d640da4a132f36ba28791e96b856cdcb899528.tar.bz2
lib/utils.c: One kilobit now is a 1000bits (instead of 1024)
http://en.wikipedia.org/wiki/Kilobit Also, convert "char*" to "const char*" in output value, as returned values can not be modified.
Diffstat (limited to 'include/netlink/utils.h')
-rw-r--r--include/netlink/utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/netlink/utils.h b/include/netlink/utils.h
index 502341a..397f9b5 100644
--- a/include/netlink/utils.h
+++ b/include/netlink/utils.h
@@ -44,8 +44,8 @@ enum {
};
/* unit pretty-printing */
-extern double nl_cancel_down_bytes(unsigned long long, char **);
-extern double nl_cancel_down_bits(unsigned long long, char **);
+extern double nl_cancel_down_bytes(unsigned long long, const char **);
+extern double nl_cancel_down_bits(unsigned long long, const char **);
extern int nl_rate2str(unsigned long long, int, char *, size_t);
extern double nl_cancel_down_us(uint32_t, char **);