Commit
25d640da4a caused the following build warning:
../include/netlink/utils.h:47:15: note: expected 'const char **' but argument is of type 'char **'
route/link/inet6.c:300:11: warning: passing argument 2 of 'nl_cancel_down_bytes' from incompatible pointer type [enabled by default]
Revert the const char ** change.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
};
/* unit pretty-printing */
-extern double nl_cancel_down_bytes(unsigned long long, const char **);
-extern double nl_cancel_down_bits(unsigned long long, const char **);
+extern double nl_cancel_down_bytes(unsigned long long, char **);
+extern double nl_cancel_down_bits(unsigned long long, char **);
extern int nl_rate2str(unsigned long long, int, char *, size_t);
extern double nl_cancel_down_us(uint32_t, char **);
*
* @return The cancelled down byte counter in the new unit.
*/
-double nl_cancel_down_bytes(unsigned long long l, const char **unit)
+double nl_cancel_down_bytes(unsigned long long l, char **unit)
{
if (l >= 1099511627776LL) {
*unit = "TiB";
*
* @return The cancelled down bit counter in the new unit.
*/
-double nl_cancel_down_bits(unsigned long long l, const char **unit)
+double nl_cancel_down_bits(unsigned long long l, char **unit)
{
if (l >= 1000000000000ULL) {
*unit = "Tbit";