* lib/gc-gnulib.c (gc_cipher_open, gc_hash_open, gc_hash_clone): Swap
the arguments of calloc().
+2025-04-02 Bruno Haible <bruno@clisp.org>
+
+ crypto/gc: Silence some -Wcalloc-transposed-args warnings.
+ * lib/gc-gnulib.c (gc_cipher_open, gc_hash_open, gc_hash_clone): Swap
+ the arguments of calloc().
+
2025-04-02 Bruno Haible <bruno@clisp.org>
Silence some -Wunterminated-string-initialization warnings.
_gc_cipher_ctx *ctx;
Gc_rc rc = GC_OK;
- ctx = calloc (sizeof (*ctx), 1);
+ ctx = calloc (1, sizeof (*ctx));
if (!ctx)
return GC_MALLOC_ERROR;
if (mode != 0)
return GC_INVALID_HASH;
- ctx = calloc (sizeof (*ctx), 1);
+ ctx = calloc (1, sizeof (*ctx));
if (!ctx)
return GC_MALLOC_ERROR;
_gc_hash_ctx *in = handle;
_gc_hash_ctx *out;
- *outhandle = out = calloc (sizeof (*out), 1);
+ *outhandle = out = calloc (1, sizeof (*out));
if (!out)
return GC_MALLOC_ERROR;