]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/dsi/dsi_attn.c
Merge master
[netatalk.git] / libatalk / dsi / dsi_attn.c
index 9aef79b53534aeabd9598c622c001b7b8f4904bc..5a60c24d5c25d30d223b820b3edf496c89009740 100644 (file)
 #include <string.h>
 #include <signal.h>
 #include <sys/types.h>
+#include <arpa/inet.h>
 
 #include <atalk/dsi.h>
 #include <atalk/afp.h>
-#include <netatalk/endian.h>
 
 #ifndef MIN
 #define MIN(a,b) ((a) < (b) ? (a) : (b))
@@ -31,8 +31,8 @@ int dsi_attention(DSI *dsi, AFPUserBytes flags)
 {
   /* header + AFPUserBytes */
   char block[DSI_BLOCKSIZ + sizeof(AFPUserBytes)];
-  u_int32_t len, nlen;
-  u_int16_t id;
+  uint32_t len, nlen;
+  uint16_t id;
 
   if (dsi->flags & DSI_SLEEPING)
       return 1;