Skip to content

Commit

Permalink
Removes unnecessary type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
HiGarfield committed Jan 24, 2025
1 parent 3772cb8 commit 99a8523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpulimit.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ int main(int argc, char *argv[])
{
if (verbose)
printf("Process %ld terminated with exit status %d\n",
(long)child, (int)WEXITSTATUS(status_process));
(long)child, WEXITSTATUS(status_process));
exit(WEXITSTATUS(status_process));
}
printf("Process %ld terminated abnormally\n", (long)child);
Expand Down
2 changes: 1 addition & 1 deletion src/process_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int process_table_del(struct process_table *pt, const struct process *p)
{
return 1; /* nothing to delete */
}
node = (struct list_node *)locate_node(pt->table[idx], p);
node = locate_node(pt->table[idx], p);
if (node == NULL)
{
return 1; /* nothing to delete */
Expand Down

0 comments on commit 99a8523

Please sign in to comment.