aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/snoopy/ospf.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/ip/snoopy/ospf.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/ip/snoopy/ospf.c')
-rw-r--r--[-rwxr-xr-x]src/cmd/ip/snoopy/ospf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/ip/snoopy/ospf.c b/src/cmd/ip/snoopy/ospf.c
index bb4cd893..d5871dd9 100755..100644
--- a/src/cmd/ip/snoopy/ospf.c
+++ b/src/cmd/ip/snoopy/ospf.c
@@ -22,7 +22,7 @@ struct Ospfpkt
uchar auth[8];
uchar data[1];
};
-#define OSPF_HDRSIZE 24
+#define OSPF_HDRSIZE 24
enum
{
@@ -62,15 +62,15 @@ ospfauth(Ospfpkt *ospf)
case 0:
return "no authentication";
case 1:
- sprint(auth, "password(%8.8ux %8.8ux)", NetL(ospf->auth),
+ sprint(auth, "password(%8.8ux %8.8ux)", NetL(ospf->auth),
NetL(ospf->auth+4));
break;
case 2:
- sprint(auth, "crypto(plen %d id %d dlen %d)", NetS(ospf->auth),
+ sprint(auth, "crypto(plen %d id %d dlen %d)", NetS(ospf->auth),
ospf->auth[2], ospf->auth[3]);
break;
default:
- sprint(auth, "auth%d(%8.8ux %8.8ux)", NetS(ospf->autype), NetL(ospf->auth),
+ sprint(auth, "auth%d(%8.8ux %8.8ux)", NetS(ospf->autype), NetL(ospf->auth),
NetL(ospf->auth+4));
}
return auth;
@@ -156,7 +156,7 @@ struct Ospfrt {
uchar typ;
uchar numtos;
uchar metric[2];
-
+
};
struct OspfrtLSA {
@@ -348,7 +348,7 @@ p_seprint(Msg *m)
x -= OSPF_HDRSIZE;
p = seprint(p, e, "ver=%d type=%d len=%d r=%V a=%V c=%4.4ux %s ",
- ospf->version, ospf->type, x,
+ ospf->version, ospf->type, x,
ospf->router, ospf->area, NetS(ospf->sum),
ospfauth(ospf));