Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines for 2023.
[simgrid.git] / examples / c / app-chainsend / chainsend.h
index 84caabb612786b9a1b770399e72b6931e4769378..8bbe961d4cec2f37b03434bef11736e1c29d176f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2020. The SimGrid Team.
+/* Copyright (c) 2012-2023. 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;