summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2009-07-26 16:32:54 +0000
committerGravatar Karl Ramm <kcr@1ts.org>2009-07-26 16:32:54 +0000
commit9a2edd44e85ce256d5402c9ba9146c28f8c48f1b (patch)
tree3143a8726a7195919c388d3960392641232a0c19
parent7fd96e385515a75f611f82f136929080bbf63f9b (diff)
Cleanup unused variable warning and put in a missing prototype
(pass -Wall -Werror)
-rw-r--r--zwgc/main.c2
-rw-r--r--zwgc/plus.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/zwgc/main.c b/zwgc/main.c
index 1e47a87..6836d5e 100644
--- a/zwgc/main.c
+++ b/zwgc/main.c
@@ -396,7 +396,9 @@ create_punt_reply(int_dictionary_binding *punt)
void
notice_handler(ZNotice_t *notice)
{
+#ifndef HAVE_ARES
char node[MAXDNAME];
+#endif
#if defined(CMU_ZWGCPLUS)
list_add_notice(notice);
diff --git a/zwgc/plus.h b/zwgc/plus.h
index 7a6f052..f0a39a5 100644
--- a/zwgc/plus.h
+++ b/zwgc/plus.h
@@ -24,3 +24,4 @@ extern void plus_window_deletions(ZNotice_t *notice); /* actually in xshow.c */
extern void plus_queue_notice(ZNotice_t *notice);
extern long plus_timequeue_events(void);
+void plus_set_hname(ZNotice_t *notice, char *hname);