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:
parent
eee3ac1bf0
commit
dcd260f191
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user