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
There is no need to export these functions. Mark them static.
[simgrid.git]
/
src
/
simix
/
smx_new_api.c
diff --git
a/src/simix/smx_new_api.c
b/src/simix/smx_new_api.c
index
7c5498d
..
eb0a9f1
100644
(file)
--- a/
src/simix/smx_new_api.c
+++ b/
src/simix/smx_new_api.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2007
, 2008, 2009, 2010
. The SimGrid Team.
+/* Copyright (c) 2007
-2010, 2012-2013
. 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
@@
-68,9
+68,9
@@
smx_action_t SIMIX_new_api_fct(smx_process_t process, const char* param1, double
/* check if the host is active */
if (surf_workstation_model->extension.
/* check if the host is active */
if (surf_workstation_model->extension.
- workstation.get_state(host
->host
) != SURF_RESOURCE_ON) {
+ workstation.get_state(host) != SURF_RESOURCE_ON) {
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
THROWF(host_error, 0, "Host %s failed, you cannot call this function",
-
host->name
);
+
sg_host_name(host)
);
}
action = xbt_mallocator_get(simix_global->action_mallocator);
}
action = xbt_mallocator_get(simix_global->action_mallocator);
@@
-124,7
+124,7
@@
void SIMIX_new_api_finish(smx_action_t action)
}
if (surf_workstation_model->extension.
}
if (surf_workstation_model->extension.
- workstation.get_state(simcall->issuer->smx_host
->host
) != SURF_RESOURCE_ON) {
+ workstation.get_state(simcall->issuer->smx_host) != SURF_RESOURCE_ON) {
simcall->issuer->context->iwannadie = 1;
}
simcall->issuer->context->iwannadie = 1;
}