diff options
| author | Stephen Leake | 2019-04-11 14:00:02 -0700 |
|---|---|---|
| committer | Stephen Leake | 2019-04-11 14:00:02 -0700 |
| commit | 7ba7def5caf7ec9d9bebffff489f0a658229fbda (patch) | |
| tree | e0cfcb59937ca0528fb81769d7d48a904a91f5dc /lib-src/make-fingerprint.c | |
| parent | 7768581172e11be52b1fcd8224f4594e126bbdb7 (diff) | |
| parent | de238b39e335c6814283faa171b35145f124edf2 (diff) | |
| download | emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.tar.gz emacs-7ba7def5caf7ec9d9bebffff489f0a658229fbda.zip | |
Merge commit 'de238b39e335c6814283faa171b35145f124edf2'
Diffstat (limited to 'lib-src/make-fingerprint.c')
| -rw-r--r-- | lib-src/make-fingerprint.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib-src/make-fingerprint.c b/lib-src/make-fingerprint.c index d310366442d..35bb8b98a00 100644 --- a/lib-src/make-fingerprint.c +++ b/lib-src/make-fingerprint.c | |||
| @@ -89,7 +89,7 @@ main (int argc, char **argv) | |||
| 89 | fclose (f); | 89 | fclose (f); |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | uint8_t digest[32]; | 92 | unsigned char digest[32]; |
| 93 | sha256_finish_ctx (&ctx, digest); | 93 | sha256_finish_ctx (&ctx, digest); |
| 94 | 94 | ||
| 95 | if (raw) | 95 | if (raw) |
| @@ -99,12 +99,12 @@ main (int argc, char **argv) | |||
| 99 | } | 99 | } |
| 100 | else | 100 | else |
| 101 | { | 101 | { |
| 102 | printf ("#include \"fingerprint.h\"\n"); | 102 | puts ("#include \"fingerprint.h\"\n" |
| 103 | printf ("\n"); | 103 | "unsigned char const fingerprint[] =\n" |
| 104 | printf ("const uint8_t fingerprint[32] = { "); | 104 | "{"); |
| 105 | for (int i = 0; i < 32; ++i) | 105 | for (int i = 0; i < 32; ++i) |
| 106 | printf ("%s0x%02X", i ? ", " : "", digest[i]); | 106 | printf ("\t0x%02X,\n", digest[i]); |
| 107 | printf (" };\n"); | 107 | puts ("};"); |
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | return EXIT_SUCCESS; | 110 | return EXIT_SUCCESS; |