Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
check that disk has been given as argument before accessing its pimpl
[simgrid.git] / examples / c / app-chainsend / chainsend.h
index 84caabb612786b9a1b770399e72b6931e4769378..9366babcae4de4d2986a30854a1b89d2fa82f4c7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2020. The SimGrid Team.
+/* Copyright (c) 2012-2022. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -16,8 +16,7 @@
 
 #include "xbt/log.h"
 #include "xbt/str.h"
-
-#include <stdlib.h>
+#include "xbt/sysdep.h"
 
 /* Connection parameters */
 #define MAX_PENDING_COMMS 256
@@ -28,7 +27,7 @@
 /* Broadcaster struct */
 typedef struct s_broadcaster {
   unsigned int host_count;
-  int piece_count;
+  unsigned int piece_count;
   sg_mailbox_t first;
   sg_mailbox_t* mailboxes;
   sg_comm_t* pending_sends;