Import today's csup sources to get the warning fix for queue.h. We

probably want to do something similar in sys/queue.h; it's bad to have
STAILQ_LAST() generate GCC warnings.
This commit is contained in:
mux 2006-03-03 18:45:12 +00:00
parent eee3ac1bf0
commit dcd260f191
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ rcsdatetotm(const char *revdate, struct tm *tm)
if (cp == NULL)
return (-1);
len = cp - revdate;
if (len == 4)
if (len >= 4)
cp = strptime(revdate, "%Y.%m.%d.%H.%M.%S", tm);
else if (len == 2)
cp = strptime(revdate, "%y.%m.%d.%H.%M.%S", tm);

View File

@ -107,7 +107,7 @@ struct { \
#define STAILQ_LAST(head, type, field) \
(STAILQ_EMPTY((head)) ? \
NULL : \
((struct type *) \
((struct type *)(void *) \
((char *)((head)->stqh_last) - __offsetof(struct type, field))))
#undef STAILQ_NEXT