Imported Upstream version 2.5.0
[debian/amanda] / common-src / util.h
index b6928737b10dd83911365784d1f92a56a99cdd38..074066d645addf542b290ebc17d2c73b7e7852fd 100644 (file)
  * file named AUTHORS, in the root directory of this distribution.
  */
 /*
- * $Id: util.h,v 1.2.2.1.4.2 2001/03/20 00:25:22 jrjackson Exp $
+ * $Id: util.h,v 1.5 2005/12/09 03:22:52 paddy_s Exp $
  */
 #ifndef UTIL_H
 #define        UTIL_H
 
+
+#define BSTRNCMP(a,b)  strncmp(a, b, strlen(b)) 
+                                                  
+                                                 
 ssize_t fullread P((int, void *, size_t));
 ssize_t fullwrite P((int, const void *, size_t));
 
-int bind_portrange P((int, struct sockaddr_in *, int, int));
+int bind_portrange P((int, struct sockaddr_in *, int, int, char *));
 
 char *construct_datestamp P((time_t *t));
 char *construct_timestamp P((time_t *t));