[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/
- Prev by Date:
tinc/src/cygwin device.c,1.1.2.5,1.1.2.6
- Next by Date:
tinc/src conf.c,1.9.4.62,1.9.4.63 conf.h,1.6.4.36,1.6.4.37 connection.c,1.1.2.37,1.1.2.38 connection.h,1.1.2.31,1.1.2.32 edge.c,1.1.2.19,1.1.2.20 edge.h,1.1.2.11,1.1.2.12 event.c,1.1.4.6,1.1.4.7 event.h,1.1.4.4,1.1.4.5 logger.c,1.1.2.1,1.1.2.2 net.c,1.35.4.188,1.35.4.189 net.h,1.9.4.59,1.9.4.60 net_packet.c,1.1.2.31,1.1.2.32 node.c,1.1.2.20,1.1.2.21 node.h,1.1.2.22,1.1.2.23 process.c,1.1.2.51,1.1.2.52 process.h,1.1.2.13,1.1.2.14 protocol.c,1.28.4.138,1.28.4.139 protocol.h,1.5.4.37,1.5.4.38 protocol_auth.c,1.1.4.21,1.1.4.22 protocol_misc.c,1.1.4.8,1.1.4.9 route.c,1.1.2.54,1.1.2.55 subnet.c,1.1.2.44,1.1.2.45 subnet.h,1.1.2.20,1.1.2.21 tincd.c,1.10.4.70,1.10.4.71
- Prev by thread:
tinc/src/cygwin device.c,1.1.2.5,1.1.2.6
- Next by thread:
tinc/src conf.c,1.9.4.62,1.9.4.63 conf.h,1.6.4.36,1.6.4.37 connection.c,1.1.2.37,1.1.2.38 connection.h,1.1.2.31,1.1.2.32 edge.c,1.1.2.19,1.1.2.20 edge.h,1.1.2.11,1.1.2.12 event.c,1.1.4.6,1.1.4.7 event.h,1.1.4.4,1.1.4.5 logger.c,1.1.2.1,1.1.2.2 net.c,1.35.4.188,1.35.4.189 net.h,1.9.4.59,1.9.4.60 net_packet.c,1.1.2.31,1.1.2.32 node.c,1.1.2.20,1.1.2.21 node.h,1.1.2.22,1.1.2.23 process.c,1.1.2.51,1.1.2.52 process.h,1.1.2.13,1.1.2.14 protocol.c,1.28.4.138,1.28.4.139 protocol.h,1.5.4.37,1.5.4.38 protocol_auth.c,1.1.4.21,1.1.4.22 protocol_misc.c,1.1.4.8,1.1.4.9 route.c,1.1.2.54,1.1.2.55 subnet.c,1.1.2.44,1.1.2.45 subnet.h,1.1.2.20,1.1.2.21 tincd.c,1.10.4.70,1.10.4.71
- Index(es):