PEXPIRE - a subscription based expire
Dave Taylor
taylor at limbo.ptp.hp.com
Fri Sep 23 11:23:53 AEST 1988
Chip Rosenthal and Mike Khaw both pointed out a couple of problems
with the pexpire() program I posted recently to "alt.sources".
Fortunately they're easy to fix:
Modifications to "Makefile":
22,25d21
< # if you're on a machine that doesn't have PW, then just remove this
< # define and see if it works (we only use it for getting the regexp()
< # routines, which are a standard part of the BSD C library.
<
27,28d22
<
< LFLAGS = -n
34c28
< ${CC} -o ${PROGNAME} ${LFLAGS} ${OBJS} ${LIBS}
---
> ${CC} -o ${PROGNAME} -n ${OBJS} ${LIBS}
Modifications to "pexpire.h":
25,27c25
< #ifndef NEWSRC
< # define NEWSRC ".newsrc"
< #endif
---
> #define NEWSRC ".newsrc"
and modifications to "pexpire.c":
504c504
< struct group_rec *a, *b;
---
> struct group_rec a, b;
511c511
< return( strcmp(a->name, b->name) );
---
> return( strcmp(a.name, b.name) );
516c516
< struct group_rec *a, *b;
---
> struct group_rec a, b;
525,526c525,526
< return ( (b->is_read ? b->read_expire : b->unread_expire) -
< (a->is_read ? a->read_expire : a->unread_expire) );
---
> return ( (b.is_read ? b.read_expire : b.unread_expire) -
> (a.is_read ? a.read_expire : a.unread_expire) );
If anyone has any other problems or enhancements, please drop me a
note about it!
-- Dave Taylor
taylor at hplabs.hp.com
More information about the Comp.sources.bugs
mailing list