]> diplodocus.org Git - nmh/blobdiff - sbr/dtimep.l
new.c: Order two return statements to match comment.
[nmh] / sbr / dtimep.l
index 238af8637584008b5df11887ad80a127833104a0..bd36c64aaf7b459d373f579811a0090cbf67d5cf 100644 (file)
@@ -11,6 +11,7 @@
 %a5000
 %{
 #include <h/nmh.h>
+#include <h/mh.h>
 #include <h/utils.h>
 #include <h/tws.h>
 
 
 #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