summaryrefslogtreecommitdiffstats
path: root/zebra/if_method.h
diff options
context:
space:
mode:
authorChris Hall <GMCH@hestia.halldom.com>2010-04-17 16:11:13 +0100
committerChris Hall <GMCH@hestia.halldom.com>2010-04-17 16:11:13 +0100
commit825f338d44433fc2d351c08d41272f52a15329db (patch)
tree927c6a37e8dbf4c425d845895500b59ac997fbfb /zebra/if_method.h
parent68297cc9dc2eb920dd6e956d0d55098ea9edaafc (diff)
downloadquagga-825f338d44433fc2d351c08d41272f52a15329db.tar.bz2
quagga-825f338d44433fc2d351c08d41272f52a15329db.tar.xz
Fixing declarations to eliminate compiler warnings in zebra.
Only parts of zebra/*.c are compiled and linked, depending on what was chosen at "configure" time. A subset of that is compiled and linked for testzebra. Some things were not declared, or not declared everywhere they were required... leading to a number of compiler warnings. These changes are intended to tidy that up.
Diffstat (limited to 'zebra/if_method.h')
-rw-r--r--zebra/if_method.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/zebra/if_method.h b/zebra/if_method.h
new file mode 100644
index 00000000..b5c95806
--- /dev/null
+++ b/zebra/if_method.h
@@ -0,0 +1,39 @@
+/* if_method header.
+ * Copyright (C) 1999 Kunihiro Ishiguro
+ *
+ * This file is part of GNU Zebra.
+ *
+ * GNU Zebra is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2, or (at your option) any
+ * later version.
+ *
+ * GNU Zebra is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with GNU Zebra; see the file COPYING. If not, write to the Free
+ * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef _ZEBRA_IF_METHOD_H
+#define _ZEBRA_IF_METHOD_H
+
+/* There are (as at 17-Apr-2010) the following if methods:
+ *
+ * if_ioctl_solaris.c
+ * if_ioctl.c
+ * if_netlink.c
+ * if_sysctl.c
+ *
+ * one of which is selected at "configure" time, see: IF_METHOD
+ *
+ * Note that if_proc.c is NOT a member of this family !
+ */
+
+extern void interface_list (void) ;
+
+#endif /* _ZEBRA_IF_METHOD_H */