--- libaitsync/src/tool.c 2011/05/09 14:36:33 1.2 +++ libaitsync/src/tool.c 2012/07/22 22:09:47 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: tool.c,v 1.2 2011/05/09 14:36:33 misho Exp $ +* $Id: tool.c,v 1.3 2012/07/22 22:09:47 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 +Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -55,7 +55,8 @@ SUCH DAMAGE. * @buflen = buffer length in bytes * @sc = Chunk structure for fill */ -inline void sync_mksig(int id, off_t off, u_char * __restrict buf, int buflen, sync_chunk_t * __restrict sc) +inline void +sync_mksig(int id, off_t off, u_char * __restrict buf, int buflen, sync_chunk_t * __restrict sc) { MD5_CTX ctx; @@ -77,7 +78,8 @@ inline void sync_mksig(int id, off_t off, u_char * __r * @nNumLen = length of number to bytes * return: -1 error, != -1 writed bytes to handle */ -inline int syncWriteNum(int f, u_long ulNum, int nNumLen) +inline int +syncWriteNum(int f, u_long ulNum, int nNumLen) { u_char buf[sizeof ulNum]; register int i; @@ -96,6 +98,7 @@ inline int syncWriteNum(int f, u_long ulNum, int nNumL } #ifndef HAVE_MKSTEMPS +/* API function missing in NetBSD base source tree!!! */ #define TEMPCHARS "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" #define NUM_CHARS (sizeof(TEMPCHARS) - 1)