X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/ae8ef7d3f4cfcab63518ea97a5eb2d03f2da9b53..872ef4dde72a88ceb1358849a462f791135b842d:/sbr/dtimep.l diff --git a/sbr/dtimep.l b/sbr/dtimep.l index e9dd8153..bd36c64a 100644 --- a/sbr/dtimep.l +++ b/sbr/dtimep.l @@ -11,6 +11,8 @@ %a5000 %{ #include +#include +#include #include /* Since we're looking at a string at a time, don't worry about @@ -43,13 +45,13 @@ #define yyterminate() (void)yy_delete_buffer(lexhandle); \ if(!(tw.tw_flags & TW_SUCC)) { \ - return (struct tws *)NULL; \ + return NULL; \ } \ if(tw.tw_year < 1970) \ tw.tw_year += 1900; \ if(tw.tw_year < 1970) \ tw.tw_year += 100; \ - return(&tw) + return &tw /* * Table to convert month names to numeric month. We use the @@ -231,7 +233,7 @@ nl [ \t\n()] char *cp; static struct tws tw; - memset(&tw,0,sizeof(struct tws)); + ZERO(&tw); lexhandle = yy_scan_string(lexstr); %}