summaryrefslogtreecommitdiff
path: root/lib/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils.c')
-rw-r--r--lib/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.c b/lib/utils.c
index 0f6ff14..74f5639 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -125,7 +125,7 @@ int __nl_read_num_str_file(const char *path, int (*cb)(long, const 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";
@@ -156,7 +156,7 @@ double nl_cancel_down_bytes(unsigned long long l, const char **unit)
*
* @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";