]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/dsi/dsi_cmdreply.c
Add missing parenthesis
[netatalk.git] / libatalk / dsi / dsi_cmdreply.c
index eb8cfd385b0d6a7d73539ec18d4ffc255b1e6763..04d17083351ea715cf89809c0cd3eb8189d4fef7 100644 (file)
@@ -20,17 +20,17 @@ int dsi_cmdreply(DSI *dsi, const int err)
 {
     int ret;
 
-    LOG(log_debug, logtype_dsi, "dsi_cmdreply(DSI ID: %u, len: %jd): START",
-        dsi->clientID, (intmax_t)dsi->datalen);
+    LOG(log_debug, logtype_dsi, "dsi_cmdreply(DSI ID: %u, len: %zd): START",
+        dsi->clientID, dsi->datalen);
 
     dsi->header.dsi_flags = DSIFL_REPLY;
     dsi->header.dsi_len = htonl(dsi->datalen);
-    dsi->header.dsi_code = htonl(err);
+    dsi->header.dsi_data.dsi_code = htonl(err);
 
     ret = dsi_stream_send(dsi, dsi->data, dsi->datalen);
 
-    LOG(log_debug, logtype_dsi, "dsi_cmdreply(DSI ID: %u, len: %jd): END",
-        dsi->clientID, (intmax_t)dsi->datalen);
+    LOG(log_debug, logtype_dsi, "dsi_cmdreply(DSI ID: %u, len: %zd): END",
+        dsi->clientID, dsi->datalen);
 
     return ret;
 }