summaryrefslogtreecommitdiff
path: root/src/zyklonb.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-07-19 17:44:49 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-07-19 17:44:49 +0200
commit027333e56aeea20c486702ecfb9571ca45fd14f6 (patch)
treef05033ff39575abf4010392920caa36b58b3b734 /src/zyklonb.c
parent43d34d2473917521376f7d56126779f941205105 (diff)
downloadxK-027333e56aeea20c486702ecfb9571ca45fd14f6.tar.gz
xK-027333e56aeea20c486702ecfb9571ca45fd14f6.tar.xz
xK-027333e56aeea20c486702ecfb9571ca45fd14f6.zip
Fix some compiler warnings
`-Weverything' seems to have found a few problems. Also enabled clang sanitizers by default.
Diffstat (limited to 'src/zyklonb.c')
-rw-r--r--src/zyklonb.c8
1 files changed, 4 insertions, 4 deletions
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)";