coccinelle: make use of DIV_ROUND_UP() wherever appropriate
Let's use our macros where we can
This commit is contained in:
@@ -583,7 +583,7 @@ static int base64_append_width(
|
||||
if (len <= 0)
|
||||
return len;
|
||||
|
||||
lines = (len + width - 1) / width;
|
||||
lines = DIV_ROUND_UP(len, width);
|
||||
|
||||
slen = strlen_ptr(sep);
|
||||
t = realloc(*prefix, plen + 1 + slen + (indent + width + 1) * lines);
|
||||
|
||||
Reference in New Issue
Block a user