Skip to content

Commit

Permalink
src/iotop: correct pg_cb signature
Browse files Browse the repository at this point in the history
This fixes CFI due to mismatching signatures between pg_cb and pid_cb.
  • Loading branch information
mikoxyz committed Feb 23, 2024
1 parent cea6d5c commit ce383b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iotop.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ inline int64_t monotime(void);
inline char *u8strpadt(const char *s,ssize_t len);
inline char *esc_low_ascii(char *p);

typedef void (*pg_cb)(pid_t pid,pid_t tid,void *hint1,void *hint2);
typedef void (*pg_cb)(pid_t pid,pid_t tid,struct xxxid_stats_arr *hint1,filter_callback hint2);
inline void pidgen_cb(pg_cb cb,void *hint1,void *hint2);


Expand Down

0 comments on commit ce383b3

Please sign in to comment.