aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ip/snoopy/dns.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/dns.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/dns.c')
-rw-r--r--src/cmd/ip/snoopy/dns.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cmd/ip/snoopy/dns.c b/src/cmd/ip/snoopy/dns.c
index 144a4949..c115df17 100644
--- a/src/cmd/ip/snoopy/dns.c
+++ b/src/cmd/ip/snoopy/dns.c
@@ -32,7 +32,7 @@ enum
/* query types (all RR types are also queries) */
Tixfr= 251, /* incremental zone transfer */
Taxfr= 252, /* zone transfer */
- Tmailb= 253, /* { Tmb, Tmg, Tmr } */
+ Tmailb= 253, /* { Tmb, Tmg, Tmr } */
Tall= 255, /* all records */
/* classes */
@@ -87,7 +87,7 @@ getstr(uchar **pp, int *len, uchar *ep)
{
uchar *p;
int n;
-
+
p = *pp;
n = *p++;
if(p+n > ep)
@@ -215,7 +215,7 @@ cname(int class)
if(class == Cin)
return "";
-
+
snprint(buf, sizeof buf, "class=%d", class);
return buf;
}
@@ -236,7 +236,7 @@ p_seprint(Msg *m)
char *sym1, *sym2, *sep;
int type;
static int first = 1;
-
+
if(first){
first = 0;
quotefmtinstall();
@@ -388,7 +388,7 @@ p_seprint(Msg *m)
NetS(p), p[3], p[4], rlen-4, p+4);
p += rlen;
break;
-
+
case Tsig:
if(rlen < 18)
goto error;
@@ -408,7 +408,7 @@ p_seprint(Msg *m)
}
if(p != ep)
goto error;
- }
+ }
return 0;
error: