diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2008-10-03 07:41:25 -0700 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2008-10-03 07:41:25 -0700 |
commit | 3e3d4ee7cb7726dcf799f95d27bce384c32b2c8a (patch) | |
tree | fe6a29d3d62f85eea9953deaf5653741fe73e54c /test-sha1.c | |
parent | d627f68fbbe0480337cd56cce442ed8c1efa230e (diff) | |
parent | 0d1d154dbe4d16a802c2e357de96e349f04d2f2c (diff) | |
download | git-3e3d4ee7cb7726dcf799f95d27bce384c32b2c8a.tar.gz git-3e3d4ee7cb7726dcf799f95d27bce384c32b2c8a.tar.xz |
Merge branch 'pb/gitweb-tagcloud' into pb/gitweb
* pb/gitweb-tagcloud:
gitweb: Support for simple project search form
gitweb: Make the by_tag filter delve in forks as well
gitweb: Support for tag clouds
... (+ many updates from master) ...
Conflicts:
gitweb/gitweb.perl
Diffstat (limited to 'test-sha1.c')
-rw-r--r-- | test-sha1.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test-sha1.c b/test-sha1.c index 78d7e983a..9b98d07c7 100644 --- a/test-sha1.c +++ b/test-sha1.c @@ -2,7 +2,7 @@ int main(int ac, char **av) { - SHA_CTX ctx; + git_SHA_CTX ctx; unsigned char sha1[20]; unsigned bufsz = 8192; char *buffer; @@ -20,7 +20,7 @@ int main(int ac, char **av) die("OOPS"); } - SHA1_Init(&ctx); + git_SHA1_Init(&ctx); while (1) { ssize_t sz, this_sz; @@ -39,9 +39,9 @@ int main(int ac, char **av) } if (this_sz == 0) break; - SHA1_Update(&ctx, buffer, this_sz); + git_SHA1_Update(&ctx, buffer, this_sz); } - SHA1_Final(sha1, &ctx); + git_SHA1_Final(sha1, &ctx); puts(sha1_to_hex(sha1)); exit(0); } |