apply code changes suggested by clang-tidy

This commit is contained in:
Axel Kohlmeyer
2022-12-11 18:44:50 -05:00
parent 9beb64236e
commit e0792d3a62
7 changed files with 20 additions and 20 deletions

View File

@ -17,10 +17,10 @@
#include "../version.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
@ -183,7 +183,7 @@ double MPI_Wtime()
double time;
struct timeval tv;
gettimeofday(&tv, NULL);
gettimeofday(&tv, nullptr);
time = 1.0 * tv.tv_sec + 1.0e-6 * tv.tv_usec;
return time;
#endif
@ -223,7 +223,7 @@ static int stubtypesize(MPI_Datatype datatype)
int MPI_Type_size(MPI_Datatype datatype, int *size)
{
if (size == NULL) return MPI_ERR_ARG;
if (size == nullptr) return MPI_ERR_ARG;
*size = stubtypesize(datatype);
return 0;