]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/dsi/dsi_getstat.c
fce: afpd: fix event names array
[netatalk.git] / libatalk / dsi / dsi_getstat.c
index 3bbec554a623338f297a178a61d39a2d4f70bf2e..4be9b802175fc218f3867a6655eb84a602783290 100644 (file)
@@ -1,5 +1,4 @@
 /*
- * $Id: dsi_getstat.c,v 1.3 2001-06-29 14:14:46 rufustfirefly Exp $
  *
  * Copyright (c) 1997 Adrian Sun (asun@zoology.washington.edu)
  * All rights reserved. See COPYRIGHT.
@@ -11,9 +10,9 @@
 
 #include <stdio.h>
 #include <string.h>
+#include <arpa/inet.h>
 
 #include <atalk/dsi.h>
-#include <netatalk/endian.h>
 
 /* return the status and then delete the connection. most of the
  * fields are already set. */
@@ -21,6 +20,7 @@ void dsi_getstatus(DSI *dsi)
 {
   dsi->header.dsi_flags = DSIFL_REPLY;
   /*dsi->header.dsi_command = DSIFUNC_STAT;*/
+  dsi->header.dsi_data.dsi_code = dsi->header.dsi_reserved = 0;
   
   memcpy(dsi->commands, dsi->status, dsi->statuslen);
   dsi->cmdlen = dsi->statuslen;