summaryrefslogtreecommitdiffstats
path: root/usr.sbin/IPXrouted/sap_tables.c
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2003-11-15 17:10:56 +0000
committertrhodes <trhodes@FreeBSD.org>2003-11-15 17:10:56 +0000
commitd3fc111f85da524a553d8ccc342ace2d734cddba (patch)
treeabc659b47600a02d40b49136b6cd8ba21077b7b9 /usr.sbin/IPXrouted/sap_tables.c
parentccae1a80af72af777f7c2846f31079f73181bf57 (diff)
downloadFreeBSD-src-d3fc111f85da524a553d8ccc342ace2d734cddba.zip
FreeBSD-src-d3fc111f85da524a553d8ccc342ace2d734cddba.tar.gz
Make this WARNS 2 clean, and fix up the manual page:
Avoid implicit function calls by adding the proper include files. Use const char copyright. Fix some fprint formatting. In the manual page: Use the .Pa macro for filenames and locations. Kill hard setence breaks. Make use of the .Tn and .Dq macros. Add some to text to the otherwise blank HISTORY section (taken from CVS).
Diffstat (limited to 'usr.sbin/IPXrouted/sap_tables.c')
-rw-r--r--usr.sbin/IPXrouted/sap_tables.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/IPXrouted/sap_tables.c b/usr.sbin/IPXrouted/sap_tables.c
index df2fc4b..e1572d1 100644
--- a/usr.sbin/IPXrouted/sap_tables.c
+++ b/usr.sbin/IPXrouted/sap_tables.c
@@ -32,6 +32,7 @@
*/
#include "defs.h"
+#include <search.h>
#include <string.h>
#include <stdlib.h>
@@ -123,7 +124,6 @@ struct sap_entry *
sap_nearestserver(ushort ServType, struct interface *ifp)
{
register struct sap_entry *sap;
- register struct sap_entry *csap;
struct sap_hash *sh;
register struct sap_entry *best = NULL;
register int besthops = HOPCNT_INFINITY;
@@ -139,7 +139,6 @@ sap_nearestserver(ushort ServType, struct interface *ifp)
best = sap;
besthops = ntohs(best->sap.hops);
}
-next:;
}
return best;
}
@@ -283,7 +282,7 @@ sap_add_clone(struct sap_entry *sap,
return;
if (ftrace)
- fprintf(ftrace, "CLONE ADD %04.4X %s.\n",
+ fprintf(ftrace, "CLONE ADD %4.4X %s.\n",
ntohs(clone->ServType),
clone->ServName);
OpenPOWER on IntegriCloud