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));
}
if (datesw) {
- fprintf(tmp, "%s: %s\n", comp, dtimenow(0));
+ fprintf(tmp, "%s: %s\n", comp, dtimenow());
}
if ((cp = text)) {
do {