Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines.
[simgrid.git] / examples / deprecated / simdag / schedule-dotload / sd_schedule-dotload.c
index 7a50b4c..fd89dda 100644 (file)
@@ -1,6 +1,6 @@
 /* simple test trying to load a DOT file.                                   */
 
-/* Copyright (c) 2010-2019. The SimGrid Team.
+/* Copyright (c) 2010-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -38,7 +38,7 @@ int main(int argc, char **argv)
   }
 
   char *tracefilename;
-  char *last = strrchr(argv[2], '.');
+  const char* last = strrchr(argv[2], '.');
   tracefilename = bprintf("%.*s.trace", (int) (last == NULL ? strlen(argv[2]) : last - argv[2]),argv[2]);
   if (argc == 4)
     tracefilename = xbt_strdup(argv[3]);