1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

This commit was generated by cvs2svn to compensate for changes in r156251,

which included commits to RCS files with non-trunk default branches.
This commit is contained in:
Maxime Henrion 2006-03-03 18:45:12 +00:00
commit 765b207771
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156252
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