diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 11:14:50 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 11:14:50 -0700 |
commit | c79601be23704a67bf57180c68bdd99c8597b9b5 (patch) | |
tree | 0fba4031e2dbee0d61d1fdd85d98cebc88f77749 /lib/smux.c | |
parent | eba0c68edeea14ae926ba3eed69723c5d28863e8 (diff) | |
parent | a934c0d16652b8089b46df855780d5c775dfe27e (diff) | |
download | quagga-c79601be23704a67bf57180c68bdd99c8597b9b5.tar.bz2 quagga-c79601be23704a67bf57180c68bdd99c8597b9b5.tar.xz |
Merge branch 'jenner' of nehalam:git/vyatta-quagga into jenner
Diffstat (limited to 'lib/smux.c')
-rw-r--r-- | lib/smux.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -83,7 +83,7 @@ static struct cmd_node smux_node = static struct thread_master *master; void * -oid_copy (void *dest, void *src, size_t size) +oid_copy (void *dest, const void *src, size_t size) { return memcpy (dest, src, size * sizeof (oid)); } @@ -157,7 +157,7 @@ oid_compare_part (oid *o1, int o1_len, oid *o2, int o2_len) } static void -smux_oid_dump (const char *prefix, oid *oid, size_t oid_len) +smux_oid_dump (const char *prefix, const oid *oid, size_t oid_len) { unsigned int i; int first = 1; @@ -174,7 +174,7 @@ smux_oid_dump (const char *prefix, oid *oid, size_t oid_len) } static int -smux_socket () +smux_socket (void) { int ret; #ifdef HAVE_IPV6 @@ -995,9 +995,9 @@ smux_open (int sock) } int -smux_trap (oid *name, size_t namelen, - oid *iname, size_t inamelen, - struct trap_object *trapobj, size_t trapobjlen, +smux_trap (const oid *name, size_t namelen, + const oid *iname, size_t inamelen, + const struct trap_object *trapobj, size_t trapobjlen, unsigned int tick, u_char sptrap) { unsigned int i; @@ -1234,7 +1234,7 @@ smux_connect (struct thread *t) /* Clear all SMUX related resources. */ static void -smux_stop () +smux_stop (void) { if (smux_read_thread) { @@ -1395,7 +1395,7 @@ smux_header_generic (struct variable *v, oid *name, size_t *length, int exact, } static int -smux_peer_default () +smux_peer_default (void) { if (smux_oid) { |