A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Fix a -Werror,-Wsign-compare
[simgrid.git]
/
examples
/
msg
/
bittorrent
/
bittorrent.c
diff --git
a/examples/msg/bittorrent/bittorrent.c
b/examples/msg/bittorrent/bittorrent.c
index
0ad4781
..
4fc3fb1
100644
(file)
--- a/
examples/msg/bittorrent/bittorrent.c
+++ b/
examples/msg/bittorrent/bittorrent.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2012-201
4
. The SimGrid Team.
+/* Copyright (c) 2012-201
6
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-7,12
+7,10
@@
#include "bittorrent.h"
#include "peer.h"
#include "tracker.h"
#include "bittorrent.h"
#include "peer.h"
#include "tracker.h"
-#include <
msg
/msg.h>
+#include <
simgrid
/msg.h>
#include <xbt/RngStream.h>
#include <xbt/RngStream.h>
-/**
- * Bittorrent example launcher
- */
+/** Bittorrent example launcher */
int main(int argc, char *argv[])
{
xbt_dynar_t host_list;
int main(int argc, char *argv[])
{
xbt_dynar_t host_list;
@@
-22,10
+20,7
@@
int main(int argc, char *argv[])
MSG_init(&argc, argv);
/* Check the arguments */
MSG_init(&argc, argv);
/* Check the arguments */
- if (argc < 3) {
- printf("Usage: %s platform_file deployment_file \n", argv[0]);
- return -1;
- }
+ xbt_assert (argc > 2, "Usage: %s platform_file deployment_file", argv[0]);
const char *platform_file = argv[1];
const char *deployment_file = argv[2];
const char *platform_file = argv[1];
const char *deployment_file = argv[2];