Switch to C++ versions of standard C headers
This commit is contained in:
committed by
Alex Chernyakhovsky
parent
19ad493dcb
commit
cf542739cc
+3
-3
@@ -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"
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
|
||||
#include "src/util/locale_utils.h"
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
also delete it here.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <cstdio>
|
||||
|
||||
#include "test_utils.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user