[srvx-commits] CVS: services/src recdb.h,1.19,1.20 helpserv.c,1.16,1.17
Brought to you by:
entrope
|
From: Entrope <en...@us...> - 2002-07-03 02:53:00
|
Update of /cvsroot/srvx/services/src
In directory usw-pr-cvs1:/tmp/cvs-serv2187/src
Modified Files:
recdb.h helpserv.c
Log Message:
remove string_list_used() and string_list_get() macros (and their one user)
Index: recdb.h
===================================================================
RCS file: /cvsroot/srvx/services/src/recdb.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** recdb.h 6 May 2002 23:33:12 -0000 1.19
--- recdb.h 3 Jul 2002 02:52:57 -0000 1.20
***************
*** 59,64 ****
void string_list_append(struct string_list *slist, char *string);
struct string_list *string_list_copy(struct string_list *orig);
- #define string_list_used(slist) ((slist)->used)
- #define string_list_get(slist, n) ((slist)->list[n])
#define string_list_delete(slist, n) (free((slist)->list[n]), (slist)->list[n] = (slist)->list[--(slist)->used])
--- 59,62 ----
Index: helpserv.c
===================================================================
RCS file: /cvsroot/srvx/services/src/helpserv.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** helpserv.c 2 Jul 2002 01:40:55 -0000 1.16
--- helpserv.c 3 Jul 2002 02:52:57 -0000 1.17
***************
*** 1412,1417 ****
helpserv_notice(user, HSMSG_REQ_INFO_3, buf, buf2);
helpserv_notice(user, HSMSG_REQ_INFO_4);
! for (nn=0; nn < string_list_used(req->text); nn++) {
! helpserv_notice(user, HSMSG_REQ_INFO_MESSAGE, string_list_get(req->text, nn));
}
}
--- 1412,1417 ----
helpserv_notice(user, HSMSG_REQ_INFO_3, buf, buf2);
helpserv_notice(user, HSMSG_REQ_INFO_4);
! for (nn=0; nn < req->text->used; nn++) {
! helpserv_notice(user, HSMSG_REQ_INFO_MESSAGE, req->text->list[nn]);
}
}
|