/* No session already defined. */
if (dmapi_session == DM_NO_SESSION) {
- err = dm_create_session(DM_NO_SESSION, DMAPI_SESSION_NAME,
+ err = dm_create_session(DM_NO_SESSION,
+ CONST_DISCARD(DMAPI_SESSION_NAME),
&dmapi_session);
if (err < 0) {
DEBUGADD(DMAPI_TRACE,
/* work out the new size for the in buffer. */
new_size = size - (inbuf2 - inbuf);
if (new_size < 0) {
- DEBUG(0,("chain_reply: chain packet size incorrect (orig size = %d, "
- "offset = %d)\n",
- size,
- (inbuf2 - inbuf) ));
+ DEBUG(0,("chain_reply: chain packet size incorrect "
+ "(orig size = %d, offset = %d)\n",
+ size, (int)(inbuf2 - inbuf) ));
exit_server_cleanly("Bad chained packet");
return(-1);
}