From 027333e56aeea20c486702ecfb9571ca45fd14f6 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 19 Jul 2014 17:44:49 +0200 Subject: Fix some compiler warnings `-Weverything' seems to have found a few problems. Also enabled clang sanitizers by default. --- src/zyklonb.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/zyklonb.c') diff --git a/src/zyklonb.c b/src/zyklonb.c index e5e8749..ca579d1 100644 --- a/src/zyklonb.c +++ b/src/zyklonb.c @@ -55,8 +55,8 @@ struct plugin_data LIST_HEADER (plugin_data) struct bot_context *ctx; ///< Parent context - pid_t pid; ///< PID of the plugin process char *name; ///< Plugin identifier + pid_t pid; ///< PID of the plugin process bool is_zombie; ///< Whether the child is a zombie bool initialized; ///< Ready to exchange IRC messages @@ -66,9 +66,9 @@ struct plugin_data // we don't stall on plugins unnecessarily. int read_fd; ///< The read end of the comm. pipe - struct str read_buffer; ///< Unprocessed input - int write_fd; ///< The write end of the comm. pipe + + struct str read_buffer; ///< Unprocessed input struct str write_buffer; ///< Output yet to be sent out }; @@ -1610,7 +1610,7 @@ on_signal_pipe_readable (const struct pollfd *fd, struct bot_context *ctx) // "plugin `name' died like a dirty jewish pig"; use `status' if (!plugin->is_zombie && WIFSIGNALED (status)) { - char *notes = ""; + const char *notes = ""; #ifdef WCOREDUMP if (WCOREDUMP (status)) notes = " (core dumped)"; -- cgit v1.2.3-70-g09d2