diff --git a/src/bot/context.c b/src/bot/context.c index dfc6946..d13b002 100644 --- a/src/bot/context.c +++ b/src/bot/context.c @@ -3,7 +3,7 @@ #include "context.h" -int bot_xmpp_startup(struct BotUserInfo user, struct BotXmppCtx *bctx) +int bot_xmpp_startup(struct BotUserInfo user, struct BotXmppCtx * const bctx) { xmpp_log_t* newLog; xmpp_ctx_t* newCtx; @@ -47,7 +47,7 @@ return 0; } -void bot_xmpp_shutdown(struct BotXmppCtx *bctx) +void bot_xmpp_shutdown(struct BotXmppCtx * const bctx) { /* enter the event loop - our connect handler will trigger an exit */ diff --git a/src/bot/context.h b/src/bot/context.h index a312574..479ab06 100644 --- a/src/bot/context.h +++ b/src/bot/context.h @@ -25,7 +25,7 @@ }; /* perform xmpp startup, store in bctx if completed successfully */ -int bot_xmpp_startup(struct BotUserInfo user, struct BotXmppCtx *bctx); +int bot_xmpp_startup(struct BotUserInfo user, struct BotXmppCtx * const bctx); /* teardown and free ctx and connection in bctx */ -void bot_xmpp_shutdown(struct BotXmppCtx *bctx); +void bot_xmpp_shutdown(struct BotXmppCtx * const bctx);