Skip to content

Commit

Permalink
Silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaky committed Apr 20, 2020
1 parent 040edfe commit 25b8580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkrestart.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ main(int argc, char *argv[])
break;
case 'u':
uflag = true;
if (!parse_int(optarg, &filter_uid) && !user_getuid(optarg, &filter_uid)) {
if (!parse_int(optarg, (int *)&filter_uid) && !user_getuid(optarg, &filter_uid)) {
xo_errx(EXIT_FAILURE, "user \"%s\" not found", optarg);
}
break;
Expand Down

0 comments on commit 25b8580

Please sign in to comment.