The right thing to do would be to change the message parameter of g_ril_reply_* to (const ril_msg *), and do the same in functions like g_ril_init_parcel, as all those functions do not touch the message. But I would do that in another pull request, preferably after finishing the re-factoring work.