diff options
Diffstat (limited to 'clients/xzwrite/zephyr.c')
-rw-r--r-- | clients/xzwrite/zephyr.c | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/clients/xzwrite/zephyr.c b/clients/xzwrite/zephyr.c index 5d8f6cc..6e25dd5 100644 --- a/clients/xzwrite/zephyr.c +++ b/clients/xzwrite/zephyr.c @@ -1,8 +1,9 @@ -#include <zephyr/zephyr.h> - #include "xzwrite.h" #include <string.h> #include <dyn.h> +#include <com_err.h> + +#include <zephyr/zephyr.h> static int zeph_send_notice(); extern Defaults defs; @@ -61,7 +62,7 @@ void zeph_init() if (retval != ZERR_NONE) Error("Cannot initialize the Zephyr library.", NULL); - retval = ZOpenPort((int *) 0); + retval = ZOpenPort(NULL); if (retval != ZERR_NONE) Error("Cannot open Zephyr port.", NULL); } @@ -255,33 +256,6 @@ static int zeph_send_notice(notice, auth) return SEND_OK; } -#ifdef DEBUG -/* debugging function */ -void zeph_display_subscriptions() -{ - ZSubscription_t sub; - int n, retval, i = 1; - - retval = ZRetrieveSubscriptions((unsigned short) 0, &n); - if (retval != ZERR_NONE) { - Warning(error_message(retval), " while retrieving subscriptions.", - NULL); - return; - } - - printf("Retrieving %d subscriptions.\n", n); - - while (ZGetSubscriptions(&sub, &i) == ZERR_NONE) { - if (i != 1) - Warning("Subscriptions skipped while printing.", NULL); - - printf("<%s,%s,%s>\n", sub.class, (*sub.zsub_classinst) ? - sub.zsub_classinst : "**", (*sub.zsub_recipient) ? - sub.zsub_recipient : "**"); - } -} -#endif - void log_message(dest, msg) Dest dest; char *msg; |