Skip to content

Commit

Permalink
mx_proc: getline returns signed size type
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 5, 2022
1 parent 0052141 commit ad98991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mx_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static long long int get_rss_anon(pid_t pid) {
_mx_cleanup_free_ char *buf = NULL;
size_t n = 0;
while(1) {
size_t len = getline(&buf, &n, file);
ssize_t len = getline(&buf, &n, file);
if (len == -1)
break;
if (strncmp(buf, "RssAnon:", 8) == 0) {
Expand Down

0 comments on commit ad98991

Please sign in to comment.