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:
Maxime Henrion 2006-03-03 18:45:12 +00:00
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
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