aboutsummaryrefslogtreecommitdiff
path: root/gmid.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-01-24 09:54:44 +0000
committerOmar Polo <op@omarpolo.com>2021-01-24 09:54:44 +0000
commit07b0a14218f3779013d657d5e737c4a2e739a9eb (patch)
tree19204cbaa242bbae672e684d036a8ff9221d9b82 /gmid.h
parent0baf6bed2a419b617d47e27c4687fccb1e721e49 (diff)
void-ify some functions
their return value is no longer used, it's only confusing at this point.
Diffstat (limited to 'gmid.h')
-rw-r--r--gmid.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmid.h b/gmid.h
index a60d7c0..3df7bfb 100644
--- a/gmid.h
+++ b/gmid.h
@@ -176,13 +176,13 @@ const char *mime(struct vhost*, const char*);
/* server.c */
int check_path(struct client*, const char*, int*);
-int open_file(struct pollfd*, struct client*);
-int check_for_cgi(char *, char*, struct pollfd*, struct client*);
+void open_file(struct pollfd*, struct client*);
+void check_for_cgi(char *, char*, struct pollfd*, struct client*);
void mark_nonblock(int);
void handle_handshake(struct pollfd*, struct client*);
void handle_open_conn(struct pollfd*, struct client*);
void start_reply(struct pollfd*, struct client*, int, const char*);
-int start_cgi(const char*, const char*, const char*, struct pollfd*, struct client*);
+void start_cgi(const char*, const char*, const char*, struct pollfd*, struct client*);
void send_file(struct pollfd*, struct client*);
void send_dir(struct pollfd*, struct client*);
void cgi_poll_on_child(struct pollfd*, struct client*);