[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tinc/lib avl_tree.c,1.1.2.13,1.1.2.14 fake-getaddrinfo.h,1.1.2.1,1.1.2.2 list.h,1.1.2.8,1.1.2.9 xalloc.h,1.1.1.1.4.4,1.1.1.1.4.5



Update of /home/CVS/tinc/lib
In directory humbolt:/tmp/cvs-serv20250/lib

Modified Files:
      Tag: CABAL
	avl_tree.c fake-getaddrinfo.h list.h xalloc.h 
Log Message:
Sprinkling the source with static and attributes.


Index: avl_tree.c
===================================================================
RCS file: /home/CVS/tinc/lib/avl_tree.c,v
retrieving revision 1.1.2.13
retrieving revision 1.1.2.14
diff -u -r1.1.2.13 -r1.1.2.14
--- avl_tree.c	2003/06/11 19:39:02	1.1.2.13
+++ avl_tree.c	2003/07/06 23:16:27	1.1.2.14
@@ -53,7 +53,9 @@
 #endif
 
 #ifndef AVL_DEPTH
-int lg(unsigned int u)
+static int lg(unsigned int u) __attribute__ ((const));
+
+static int lg(unsigned int u)
 {
 	int r = 1;
 
@@ -89,7 +91,7 @@
 
 /* Internal helper functions */
 
-int avl_check_balance(avl_node_t *node)
+static int avl_check_balance(avl_node_t *node)
 {
 #ifdef AVL_DEPTH
 	int d;
@@ -117,7 +119,7 @@
 #endif
 }
 
-void avl_rebalance(avl_tree_t *tree, avl_node_t *node)
+static void avl_rebalance(avl_tree_t *tree, avl_node_t *node)
 {
 	avl_node_t *child;
 	avl_node_t *gchild;

Index: fake-getaddrinfo.h
===================================================================
RCS file: /home/CVS/tinc/lib/Attic/fake-getaddrinfo.h,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- fake-getaddrinfo.h	2002/07/12 11:45:21	1.1.2.1
+++ fake-getaddrinfo.h	2003/07/06 23:16:27	1.1.2.2
@@ -22,6 +22,10 @@
 # define NI_NUMERICSERV    8
 #endif
 
+#ifndef AI_NUMERICHOST
+#define AI_NUMERICHOST 4
+#endif
+
 #ifndef HAVE_STRUCT_ADDRINFO
 struct addrinfo {
 	int	ai_flags;	/* AI_PASSIVE, AI_CANONNAME */

Index: list.h
===================================================================
RCS file: /home/CVS/tinc/lib/list.h,v
retrieving revision 1.1.2.8
retrieving revision 1.1.2.9
diff -u -r1.1.2.8 -r1.1.2.9
--- list.h	2002/09/09 22:32:27	1.1.2.8
+++ list.h	2003/07/06 23:16:28	1.1.2.9
@@ -47,7 +47,7 @@
 
 /* (De)constructors */
 
-extern list_t *list_alloc(list_action_t);
+extern list_t *list_alloc(list_action_t) __attribute__ ((malloc));
 extern void list_free(list_t *);
 extern list_node_t *list_alloc_node(void);
 extern void list_free_node(list_t *, list_node_t *);

Index: xalloc.h
===================================================================
RCS file: /home/CVS/tinc/lib/xalloc.h,v
retrieving revision 1.1.1.1.4.4
retrieving revision 1.1.1.1.4.5
diff -u -r1.1.1.1.4.4 -r1.1.1.1.4.5
--- xalloc.h	2000/11/29 14:23:08	1.1.1.1.4.4
+++ xalloc.h	2003/07/06 23:16:28	1.1.1.1.4.5
@@ -18,9 +18,9 @@
 /* FIXME: describe */
 extern void (*xalloc_fail_func) ();
 
-void *xmalloc PARAMS ((size_t n));
-void *xmalloc_and_zero PARAMS ((size_t n));
+void *xmalloc PARAMS ((size_t n)) __attribute__ ((malloc));
+void *xmalloc_and_zero PARAMS ((size_t n)) __attribute__ ((malloc));
 void *xcalloc PARAMS ((size_t n, size_t s));
-void *xrealloc PARAMS ((void *p, size_t n));
+void *xrealloc PARAMS ((void *p, size_t n)) __attribute__ ((malloc));
 
-char *xstrdup PARAMS ((const char *s));
+char *xstrdup PARAMS ((const char *s)) __attribute__ ((malloc));

--
Tinc-cvs:     CVS changelog list for the tinc VPN daemon
Archive:      http://mail.nl.linux.org/tinc-cvs/
Tinc site:    http://tinc.nl.linux.org/