| 14 /* $Header$ */ |
14 /* $Header$ */ |
| 15 |
15 |
| 16 #include <internal.h> |
16 #include <internal.h> |
| 17 |
17 |
| 18 #ifndef lint |
18 #ifndef lint |
| 19 static const char rcsid_ZSubscriptions_c[] = "$Id: ZSubs.c 2096 2001-07-31 01:00:39Z warmenhoven $"; |
19 static const char rcsid_ZSubscriptions_c[] = "$Id: ZSubs.c 2432 2001-10-03 19:38:28Z warmenhoven $"; |
| 20 #endif |
20 #endif |
| 21 |
21 |
| 22 static Code_t Z_Subscriptions __P((register ZSubscription_t *sublist, |
22 static Code_t Z_Subscriptions __P((register ZSubscription_t *sublist, |
| 23 int nitems, unsigned int port, |
23 int nitems, unsigned int port, |
| 24 char *opcode, int authit)); |
24 char *opcode, int authit)); |
| 101 |
101 |
| 102 /* format the header to figure out how long it is */ |
102 /* format the header to figure out how long it is */ |
| 103 retval = Z_FormatHeader(¬ice, header, sizeof(header), &hdrlen, ZAUTH); |
103 retval = Z_FormatHeader(¬ice, header, sizeof(header), &hdrlen, ZAUTH); |
| 104 if (retval != ZERR_NONE && !authit) |
104 if (retval != ZERR_NONE && !authit) |
| 105 retval = Z_FormatHeader(¬ice, header, sizeof(header), |
105 retval = Z_FormatHeader(¬ice, header, sizeof(header), |
| 106 &hdrlen, ZAUTH); |
106 &hdrlen, ZNOAUTH); |
| 107 if (retval != ZERR_NONE) { |
107 if (retval != ZERR_NONE) { |
| 108 free((char *)list); |
108 free((char *)list); |
| 109 return(retval); |
109 return(retval); |
| 110 } |
110 } |
| 111 |
111 |