diff options
| author | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-25 15:21:52 +0100 |
|---|---|---|
| committer | Tristan Riehs <tristan.riehs@inria.fr> | 2025-12-25 15:21:52 +0100 |
| commit | a820720b5c0e828a624155483f3e5723bfdbd720 (patch) | |
| tree | eac4c84f9fff3052e30c8620965a5ea1a15ecfec | |
| parent | b9912f2054475a618ffd88428e6beb529e07c2f4 (diff) | |
Use 32 bits for file sums
| -rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -100,12 +100,12 @@ static void sanitize_sql_str(char **str) OUT. Algorithm from http://www.cse.yorku.ca/~oz/hash.html via https://stackoverflow.com/a/7666577/20138083. Return 0 on success, -1 on error. */ -static int sum(uint64_t *out, const char *file) +static int sum(uint32_t *out, const char *file) { FILE *stream = fopen(file, "r"); uint8_t buf[4096]; size_t buf_len; - uint64_t sum = 5381; + uint32_t sum = 5381; if (!file) { perror("fopen"); return -1; |
