Merged pidgin/main into default
[pidgin-git.git] / libpurple / protocols / zephyr / ZFlsSubs.c
blobf94aaeb93213658d440a6b14450f08b3c87abe70
1 /* This file is part of the Project Athena Zephyr Notification System.
2 * It contains source for the ZFlushSubscriptions function.
4 * Created by: Robert French
6 * Copyright (c) 1987 by the Massachusetts Institute of Technology.
7 * For copying and distribution information, see the file
8 * "mit-copyright.h".
9 */
11 #include "internal.h"
13 Code_t ZFlushSubscriptions()
15 register int i;
17 if (!__subscriptions_list)
18 return (ZERR_NONE);
20 for (i=0;i<__subscriptions_num;i++) {
21 free(__subscriptions_list[i].zsub_class);
22 free(__subscriptions_list[i].zsub_classinst);
23 free(__subscriptions_list[i].zsub_recipient);
26 free((char *)__subscriptions_list);
28 __subscriptions_list = NULL;
29 __subscriptions_num = 0;
31 return (ZERR_NONE);