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
bb215397ee
commit
91be0d8ce3
@ -204,7 +204,7 @@ rcsdatetotm(const char *revdate, struct tm *tm)
|
|||||||
if (cp == NULL)
|
if (cp == NULL)
|
||||||
return (-1);
|
return (-1);
|
||||||
len = cp - revdate;
|
len = cp - revdate;
|
||||||
if (len == 4)
|
if (len >= 4)
|
||||||
cp = strptime(revdate, "%Y.%m.%d.%H.%M.%S", tm);
|
cp = strptime(revdate, "%Y.%m.%d.%H.%M.%S", tm);
|
||||||
else if (len == 2)
|
else if (len == 2)
|
||||||
cp = strptime(revdate, "%y.%m.%d.%H.%M.%S", tm);
|
cp = strptime(revdate, "%y.%m.%d.%H.%M.%S", tm);
|
||||||
|
@ -107,7 +107,7 @@ struct { \
|
|||||||
#define STAILQ_LAST(head, type, field) \
|
#define STAILQ_LAST(head, type, field) \
|
||||||
(STAILQ_EMPTY((head)) ? \
|
(STAILQ_EMPTY((head)) ? \
|
||||||
NULL : \
|
NULL : \
|
||||||
((struct type *) \
|
((struct type *)(void *) \
|
||||||
((char *)((head)->stqh_last) - __offsetof(struct type, field))))
|
((char *)((head)->stqh_last) - __offsetof(struct type, field))))
|
||||||
|
|
||||||
#undef STAILQ_NEXT
|
#undef STAILQ_NEXT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user