summaryrefslogtreecommitdiffstats
path: root/lib/if.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:53:35 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2014-06-04 06:58:02 +0200
commit6b0655a25194c7c0331154edaa6124cf783e5e5e (patch)
treec0c7d479f2684531249668210da27a60322ba395 /lib/if.c
parentfdb913aedb5a9807ad60715e8badb4f25d57acea (diff)
downloadquagga-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.bz2
quagga-6b0655a25194c7c0331154edaa6124cf783e5e5e.tar.xz
*: nuke ^L (page feed)
Quagga sources have inherited a slew of Page Feed (^L, \xC) characters from ancient history. Among other things, these break patchwork's XML-RPC API because \xC is not a valid character in XML documents. Nuke them from high orbit. Patches can be adapted simply by: sed -e 's%^L%%' -i filename.patch (you can type page feeds in some environments with Ctrl-V Ctrl-L) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/if.c b/lib/if.c
index 6348403b..18e2fb31 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -35,7 +35,7 @@
#include "buffer.h"
#include "str.h"
#include "log.h"
-
+
/* Master list of interfaces. */
struct list *iflist;
@@ -45,7 +45,7 @@ struct if_master
int (*if_new_hook) (struct interface *);
int (*if_delete_hook) (struct interface *);
} if_master;
-
+
/* Compare interface names, returning an integer greater than, equal to, or
* less than 0, (following the strcmp convention), according to the
* relationship between ifp1 and ifp2. Interface names consist of an
@@ -513,7 +513,7 @@ DEFUN (no_interface_desc,
return CMD_SUCCESS;
}
-
+
#ifdef SUNOS_5
/* Need to handle upgrade from SUNWzebra to Quagga. SUNWzebra created
* a seperate struct interface for each logical interface, so config
@@ -555,7 +555,7 @@ if_sunwzebra_get (const char *name, size_t nlen)
return if_get_by_name_len (name, nlen);
}
#endif /* SUNOS_5 */
-
+
DEFUN (interface,
interface_cmd,
"interface IFNAME",
@@ -806,7 +806,7 @@ if_indextoname (unsigned int ifindex, char *name)
return ifp->name;
}
#endif
-
+
#if 0 /* this route_table of struct connected's is unused
* however, it would be good to use a route_table rather than
* a list..