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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/csup/dist/; revision=156251 svn path=/vendor/csup/20060303/; revision=156253; tag=vendor/csup/20060303
@ -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