summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/eurephia_nullsafe.c2
-rw-r--r--utils/saltdecode.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/common/eurephia_nullsafe.c b/common/eurephia_nullsafe.c
index 5f507c3..17b808a 100644
--- a/common/eurephia_nullsafe.c
+++ b/common/eurephia_nullsafe.c
@@ -69,7 +69,7 @@ __malloc__ void *_malloc_nullsafe(eurephiaCTX *ctx, size_t sz, const char *file,
} else {
fprintf(stderr, "** FATAL ERROR ** "
"Could not allocate memory region for %ld bytes (File %s, line %i)",
- sz, file, line);
+ (unsigned long int) sz, file, line);
}
}
#ifdef DEBUG
diff --git a/utils/saltdecode.c b/utils/saltdecode.c
index 137cb10..45254e0 100644
--- a/utils/saltdecode.c
+++ b/utils/saltdecode.c
@@ -113,7 +113,9 @@ int main(int argc, char **argv) {
salt_len = saltinfo & 0x000000ff;
rounds = MAX(ROUNDS_MIN, MIN(((saltinfo & 0xffffff00) >> 8), ROUNDS_MAX));
- printf("\nSalt length: %ld\nHash rounds: %ld\n\n", salt_len, rounds);
+ printf("\nSalt length: %ld\nHash rounds: %ld\n\n",
+ (unsigned long int) salt_len,
+ (unsigned long int) rounds);
return 0;
}