Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / examples / smpi / ampi_test / ampi_test.cpp
index 696f27a3b6669305a721e9d0f5aa5d881835a767..e9e25d31ed0237b0cf96fb7c4688f14f7661847d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -13,9 +13,9 @@ int main(int argc, char* argv[])
   // useless alocations for testing and coverage
   void* pointer = malloc(100 * sizeof(int));
   void* ptmp;
-  if ((ptmp = realloc(pointer, 50 * sizeof(int))) != NULL)
+  if ((ptmp = realloc(pointer, 50 * sizeof(int))) != nullptr)
     pointer = ptmp;
-  if ((ptmp = realloc(pointer, 200 * sizeof(int))) != NULL)
+  if ((ptmp = realloc(pointer, 200 * sizeof(int))) != nullptr)
     pointer = ptmp;
   free(pointer);
   pointer = calloc(100, sizeof(int));