]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/coloredstderr.c
handle_*_pre(),handle_*_post(): Remove unused action parameter.
[coloredstderr/coloredstderr.git] / src / coloredstderr.c
index 94a597ea270c9e207ce08a9407a3cb6921eb7781..c36c2f732cb409732c0da90a2f87ed10ba448b42 100644 (file)
@@ -140,9 +140,7 @@ inline static void init_pre_post_string(void) {
     post_string_size = strlen(post_string);
 }
 
-static void handle_fd_pre(int fd, int action) {
-    (void)action;
-
+static void handle_fd_pre(int fd) {
     if (!pre_string || !post_string) {
         init_pre_post_string();
     }
@@ -150,16 +148,12 @@ static void handle_fd_pre(int fd, int action) {
     DLSYM_FUNCTION(real_write, "write");
     real_write(fd, pre_string, pre_string_size);
 }
-static void handle_fd_post(int fd, int action) {
-    (void)action;
-
+static void handle_fd_post(int fd) {
     /* write() already loaded above in handle_fd_pre(). */
     real_write(fd, post_string, post_string_size);
 }
 
-static void handle_file_pre(FILE *stream, int action) {
-    (void)action;
-
+static void handle_file_pre(FILE *stream) {
     if (!pre_string || !post_string) {
         init_pre_post_string();
     }
@@ -167,9 +161,7 @@ static void handle_file_pre(FILE *stream, int action) {
     DLSYM_FUNCTION(real_fwrite, "fwrite");
     real_fwrite(pre_string, pre_string_size, 1, stream);
 }
-static void handle_file_post(FILE *stream, int action) {
-    (void)action;
-
+static void handle_file_post(FILE *stream) {
     /* fwrite() already loaded above in handle_file_pre(). */
     real_fwrite(post_string, post_string_size, 1, stream);
 }