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
Update installation of windows
[simgrid.git]
/
doc
/
gtut-files
/
10-rpc.c
diff --git
a/doc/gtut-files/10-rpc.c
b/doc/gtut-files/10-rpc.c
index
f00a06f
..
bc01cbf
100644
(file)
--- a/
doc/gtut-files/10-rpc.c
+++ b/
doc/gtut-files/10-rpc.c
@@
-57,7
+57,7
@@
int server_convert_a2i_cb(gras_msg_cb_ctx_t ctx, void *payload)
result = strtol(string, &p, 10);
if (*p != '\0')
result = strtol(string, &p, 10);
if (*p != '\0')
- THROW
2
(arg_error, 0,
+ THROW
F
(arg_error, 0,
"Error while converting %s: this does not seem to be a valid number (problem at '%s')",
string, p);
"Error while converting %s: this does not seem to be a valid number (problem at '%s')",
string, p);
@@
-128,7
+128,8
@@
int client(int argc, char *argv[])
TRY {
gras_msg_rpccall(toserver, 60, "convert a2i", &string_to_convert,
&long_result);
TRY {
gras_msg_rpccall(toserver, 60, "convert a2i", &string_to_convert,
&long_result);
- } CATCH(e) {
+ }
+ CATCH(e) {
XBT_INFO
("The server refuses to convert %s. Here is the received exception:",
string_to_convert);
XBT_INFO
("The server refuses to convert %s. Here is the received exception:",
string_to_convert);