Switch to C++ versions of standard C headers

This commit is contained in:
Alex Chernyakhovsky
2023-07-30 18:10:08 -04:00
committed by Alex Chernyakhovsky
parent 19ad493dcb
commit cf542739cc
56 changed files with 206 additions and 192 deletions
+3 -3
View File
@@ -37,9 +37,9 @@
client and server. It does not particularly test any code written for
the Mosh project. */
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <cstdint>
#include <cstring>
#include <cstdlib>
#include "src/crypto/base64.h"
#include "base64_vector.h"
+2 -2
View File
@@ -34,10 +34,10 @@
messages, interspersed with some random bad ciphertexts which we need to
reject. */
#include <stdio.h>
#include <cstdio>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <cinttypes>
#include "src/crypto/crypto.h"
#include "src/crypto/prng.h"
+6 -5
View File
@@ -32,13 +32,14 @@
#include "src/include/config.h"
#include <cerrno>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
+1 -1
View File
@@ -30,7 +30,7 @@
also delete it here.
*/
#include <stdio.h>
#include <cstdio>
#include "src/util/locale_utils.h"
+3 -3
View File
@@ -37,9 +37,9 @@
client and server. It does not particularly test any code written for
the Mosh project. */
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <memory>
#include "src/crypto/ae.h"
+1 -1
View File
@@ -30,7 +30,7 @@
also delete it here.
*/
#include <stdio.h>
#include <cstdio>
#include "test_utils.h"