curl/tests/server
Sam James bc8509a748
misc: fix -Walloc-size warnings
GCC 14 introduces a new -Walloc-size included in -Wextra which gives:

```
src/tool_operate.c: In function ‘add_per_transfer’:
src/tool_operate.c:213:5: warning: allocation of insufficient size ‘1’ for type ‘struct per_transfer’ with size ‘480’ [-Walloc-size]
  213 |   p = calloc(sizeof(struct per_transfer), 1);
      |     ^
src/var.c: In function ‘addvariable’:
src/var.c:361:5: warning: allocation of insufficient size ‘1’ for type ‘struct var’ with size ‘32’ [-Walloc-size]
  361 |   p = calloc(sizeof(struct var), 1);
      |     ^
```

The calloc prototype is:
```
void *calloc(size_t nmemb, size_t size);
    ```

So, just swap the number of members and size arguments to match the
prototype, as we're initialising 1 struct of size `sizeof(struct
...)`. GCC then sees we're not doing anything wrong.

Closes #12292
2023-11-11 23:35:47 +01:00
..
.gitignore tidy-up: mostly whitespace nits 2023-08-31 23:02:10 +00:00
base64.pl copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
CMakeLists.txt cmake: support building static and shared libcurl in one go 2023-07-29 00:40:01 +00:00
disabled.c lib: add ability to disable auths individually 2023-09-07 17:45:06 +02:00
fake_ntlm.c tests: fix compiler warnings 2023-09-24 21:52:54 +00:00
getpart.c misc: fix -Walloc-size warnings 2023-11-11 23:35:47 +01:00
getpart.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.am copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
Makefile.inc copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
mqttd.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
resolve.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
rtspd.c spelling: fix codespell 2.2.6 typos 2023-10-03 21:37:56 +00:00
server_setup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
server_sockaddr.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
sockfilt.c tests: fix a race condition in ftp server disconnect 2023-10-07 11:19:39 -07:00
socksd.c tests/server: add more SOCKS5 handshake error checking 2023-10-14 22:42:49 -04:00
sws.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
testpart.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tftp.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tftpd.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
util.c build: delete checks for C89 standard headers 2023-09-26 14:25:10 +00:00
util.h tests: fix error messages & handling around sockets 2023-06-09 15:05:19 -07:00