-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010, 2012-2014. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
static int l_task_execute(lua_State* L)
{
msg_task_t task = sglua_check_task(L, 1);
- MSG_error_t res = MSG_task_execute(task);
+ msg_error_t res = MSG_task_execute(task);
if (res == MSG_OK) {
return 0;
/* task */
sglua_task_register(L);
/* -- */
- MSG_error_t res = MSG_task_send_with_timeout(task, mailbox, timeout);
+ msg_error_t res = MSG_task_send_with_timeout(task, mailbox, timeout);
if (res == MSG_OK) {
lua_pushboolean(L, 1);
/* no timeout by default */
}
/* mailbox ... */
- MSG_error_t res = MSG_task_receive_with_timeout(&task, mailbox, timeout);
+ msg_error_t res = MSG_task_receive_with_timeout(&task, mailbox, timeout);
if (res == MSG_OK) {
sglua_task_unregister(L, task);