projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New function and example program computes Fibonacci numbers fairly fast.
[u/mdw/catacomb]
/
cc-hash.c
diff --git
a/cc-hash.c
b/cc-hash.c
index
00dcb39
..
64fea0e
100644
(file)
--- a/
cc-hash.c
+++ b/
cc-hash.c
@@
-298,7
+298,7
@@
int fhash(fhashstate *fh, const char *file, void *buf)
return (-1);
if (fh->f & FHF_PROGRESS) {
return (-1);
if (fh->f & FHF_PROGRESS) {
- if (fprogress_init(&ff, file, fp)) return (-1);
+ if (fprogress_init(&ff, file
? file : "<stdin>"
, fp)) return (-1);
}
if (fh->f & FHF_JUNK) {
}
if (fh->f & FHF_JUNK) {