]> git.marmaro.de Git - mmh/blobdiff - uip/anno.c
We have only numeric timezone support (e.g. +0200) from now on.
[mmh] / uip / anno.c
index d03c99cc06d512701dcc5c7b917881d4b94d07b9..3b1d1377c55c53b1564e5f95a92b9cf9aec96a5f 100644 (file)
@@ -429,7 +429,7 @@ annosbr(int fd, char *file, char *comp, char *text, int datesw, int delete,
        int length;
        int n;  /* number of bytes written */
 
-       mode = fstat(fd, &st) != NOTOK ? (st.st_mode & 0777) : m_gmprot();
+       mode = fstat(fd, &st) != NOTOK ? (int)(st.st_mode & 0777) : m_gmprot();
 
        strncpy(tmpfil, m_mktemp2(file, "annotate", NULL, &tmp),
                        sizeof(tmpfil));
@@ -604,7 +604,7 @@ annosbr(int fd, char *file, char *comp, char *text, int datesw, int delete,
                }
 
                if (datesw) {
-                       fprintf(tmp, "%s: %s\n", comp, dtimenow(0));
+                       fprintf(tmp, "%s: %s\n", comp, dtimenow());
                }
                if ((cp = text)) {
                        do {