projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed example to show that mhparam preserves case of component name.
[mmh]
/
uip
/
anno.c
diff --git
a/uip/anno.c
b/uip/anno.c
index
d03c99c
..
3b1d137
100644
(file)
--- a/
uip/anno.c
+++ b/
uip/anno.c
@@
-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 */
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));
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) {
}
if (datesw) {
- fprintf(tmp, "%s: %s\n", comp, dtimenow(0));
+ fprintf(tmp, "%s: %s\n", comp, dtimenow());
}
if ((cp = text)) {
do {
}
if ((cp = text)) {
do {