diff options
author | John Kohl <jtkohl@mit.edu> | 1988-06-29 12:51:43 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1988-06-29 12:51:43 +0000 |
commit | 5425ad89df18a2557cc4c167408370b87b7167e7 (patch) | |
tree | f873db8fca67bf57570da7bec061fc62a5a23279 | |
parent | 226bda79389b40bf47d04579c3b0e3291d9958c3 (diff) |
lint fixes
-rw-r--r-- | lib/ZRetSubs.c | 8 | ||||
-rw-r--r-- | lib/Zinternal.c | 11 |
2 files changed, 9 insertions, 10 deletions
diff --git a/lib/ZRetSubs.c b/lib/ZRetSubs.c index 5fee160..3dc4cad 100644 --- a/lib/ZRetSubs.c +++ b/lib/ZRetSubs.c @@ -127,7 +127,7 @@ static Code_t Z_RetSubs(notice, nsubs) malloc((unsigned)(__subscriptions_num* sizeof(ZSubscription_t))); if (!__subscriptions_list) { - ZFreeNotice(¬ice); + ZFreeNotice(&retnotice); return (ENOMEM); } @@ -135,7 +135,7 @@ static Code_t Z_RetSubs(notice, nsubs) __subscriptions_list[i].class = (char *) malloc((unsigned)strlen(ptr)+1); if (!__subscriptions_list[i].class) { - ZFreeNotice(¬ice); + ZFreeNotice(&retnotice); return (ENOMEM); } (void) strcpy(__subscriptions_list[i].class,ptr); @@ -143,7 +143,7 @@ static Code_t Z_RetSubs(notice, nsubs) __subscriptions_list[i].classinst = (char *) malloc((unsigned)strlen(ptr)+1); if (!__subscriptions_list[i].classinst) { - ZFreeNotice(¬ice); + ZFreeNotice(&retnotice); return (ENOMEM); } (void) strcpy(__subscriptions_list[i].classinst,ptr); @@ -154,7 +154,7 @@ static Code_t Z_RetSubs(notice, nsubs) __subscriptions_list[i].recipient = (char *) malloc((unsigned)strlen(ptr2)+1); if (!__subscriptions_list[i].recipient) { - ZFreeNotice(¬ice); + ZFreeNotice(&retnotice); return (ENOMEM); } (void) strcpy(__subscriptions_list[i].recipient,ptr2); diff --git a/lib/Zinternal.c b/lib/Zinternal.c index d77ddda..9a84f86 100644 --- a/lib/Zinternal.c +++ b/lib/Zinternal.c @@ -14,9 +14,8 @@ #ifndef lint static char rcsid_Zinternal_c[] = "$Header$"; -#endif lint - static char copyright[] = "Copyright (c) 1987,1988 by the Massachusetts Institute of Technology."; +#endif lint #include <zephyr/mit-copyright.h> @@ -714,25 +713,25 @@ void Z_RemQueue(qptr) free ((char *)qptr); __Q_Head = (struct _Z_InputQ *)0; __Q_Tail = (struct _Z_InputQ *)0; - return (ZERR_NONE); + return; } if (qptr == __Q_Head) { __Q_Head = qptr->next; __Q_Head->prev = (struct _Z_InputQ *)0; free ((char *)qptr); - return (ZERR_NONE); + return; } if (qptr == __Q_Tail) { __Q_Tail = qptr->prev; __Q_Tail->next = (struct _Z_InputQ *)0; free ((char *)qptr); - return (ZERR_NONE); + return; } qptr->prev->next = qptr->next; qptr->next->prev = qptr->prev; free ((char *)qptr); - return (ZERR_NONE); + return; } Code_t Z_SendFragmentedNotice(notice, len, send_func) |