Commit d645fff0 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su_root.c: fixed su_msg_reply()

darcs-hash:20070502160750-55b16-09ea289fffad33767de5769550d43664ec093334.gz
parent c040177a
......@@ -378,7 +378,10 @@ typedef struct su_msg_s su_msg_t;
/** Message reference type. */
typedef su_msg_t *su_msg_r[1];
/** Contstant reference to su_msg */
/** Constant reference to su_msg.
*
* @note The reference is constant, but the message can be modified.
*/
typedef su_msg_t * const su_msg_cr[1];
/** Initializer for a message reference. @HI */
......@@ -513,7 +516,7 @@ SOFIAPUBFUN int su_msg_create(su_msg_r msg,
su_task_r const to, su_task_r const from,
su_msg_f wakeup, isize_t size);
SOFIAPUBFUN int su_msg_report(su_msg_r msg, su_msg_f report);
SOFIAPUBFUN int su_msg_reply(su_msg_r reply, su_msg_r const msg,
SOFIAPUBFUN int su_msg_reply(su_msg_r reply, su_msg_cr msg,
su_msg_f wakeup, isize_t size);
SOFIAPUBFUN void su_msg_destroy(su_msg_r msg);
SOFIAPUBFUN void su_msg_save(su_msg_r msg, su_msg_r msg0);
......
......@@ -908,7 +908,7 @@ int su_msg_reply(su_msg_r reply, su_msg_r const msg,
assert(msg != reply);
*msg0 = (struct su_msg_s *) msg;
*msg0 = *(su_msg_t **) msg;
*reply = NULL;
return su_msg_create(reply, su_msg_from(msg0), su_msg_to(msg0), wakeup, size);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment