]> git.marmaro.de Git - mmh/blobdiff - uip/scansbr.c
[bug #4302] errno is not always an extern int
[mmh] / uip / scansbr.c
index 6fd4bb32fb1cc6c9f3c72f8a193a1adf92cf73f3..be68bf89162fb5c7c53ee761adaa7d8f10bcc623 100644 (file)
@@ -3,6 +3,10 @@
  * scansbr.c -- routines to help scan along...
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -327,9 +331,9 @@ finished:
                if (datecomp->c_tws == NULL)
                    adios (NULL, "unable to allocate tws buffer");
                *datecomp->c_tws = *dlocaltime ((time_t *) &st.st_mtime);
-               datecomp->c_flags = -1;
+               datecomp->c_flags |= CF_DATEFAB|CF_TRUE;
            } else {
-               datecomp->c_flags = 0;
+               datecomp->c_flags &= ~CF_DATEFAB;
            }
        }
     }