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
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git]
/
examples
/
gras
/
console
/
ping_server.c
diff --git
a/examples/gras/console/ping_server.c
b/examples/gras/console/ping_server.c
index
11a9ccc
..
03e0317
100644
(file)
--- a/
examples/gras/console/ping_server.c
+++ b/
examples/gras/console/ping_server.c
@@
-33,7
+33,8
@@
static int server_cb_ping_handler(gras_msg_cb_ctx_t ctx, void *payload)
/* 3. Log which client connected */
INFO3(">>>>>>>> Got message PING(%d) from %s:%d <<<<<<<<",
msg,
/* 3. Log which client connected */
INFO3(">>>>>>>> Got message PING(%d) from %s:%d <<<<<<<<",
msg,
- gras_socket_peer_name(expeditor), gras_socket_peer_port(expeditor));
+ gras_socket_peer_name(expeditor),
+ gras_socket_peer_port(expeditor));
/* 4. Change the value of the msg variable */
msg = 4321;
/* 4. Change the value of the msg variable */
msg = 4321;
@@
-93,7
+94,8
@@
int server(int argc, char *argv[])
/* 7. Housekeeping */
if (!globals->endcondition)
/* 7. Housekeeping */
if (!globals->endcondition)
- WARN0("An error occured, the endcondition was not set by the callback");
+ WARN0
+ ("An error occured, the endcondition was not set by the callback");
/* 8. Free the allocated resources, and shut GRAS down */
gras_socket_close(globals->sock);
/* 8. Free the allocated resources, and shut GRAS down */
gras_socket_close(globals->sock);