/*
+ * $Id: asp_write.c,v 1.4 2009-10-22 12:35:39 franklahm Exp $
+ *
* Copyright (c) 1990,1991 Regents of The University of Michigan.
* All Rights Reserved.
*
* netatalk@itd.umich.edu
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
#include <string.h>
#include <sys/types.h>
#include <sys/uio.h>
#if defined(BSD) || defined(BSD4_3)
#define memmove(a, b, n) bcopy((b), (a), (n))
-#endif
+#endif /* BSD || BSD4_3 */
-int asp_wrtcont(ASP asp, char *buf, int *buflen)
+int asp_wrtcont(ASP asp, char *buf, size_t *buflen)
{
struct iovec iov[ ASP_MAXPACKETS ];
struct atp_block atpb;