Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spurious trailing whitespace blitz

Cause it makes me look like I'm productive.
  • Loading branch information...
commit a0e301be6ae4f8c141c03b03c0e945a94b549b43 1 parent 0dc547b
@msantos authored
View
8 ds/ds.c
@@ -3,17 +3,17 @@
* supporting recursion.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -86,7 +86,7 @@ typedef struct _DS_STATE {
* .... ...1 .... .... = recursion requested
* .... .... 0... .... = recursion not available
* .... .... .... .... = no error
- */
+ */
struct dns_header {
u_int16_t dns_id;
View
6 ds/ds.h
@@ -3,17 +3,17 @@
* supporting recursion.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 ds/iprange.c
@@ -3,17 +3,17 @@
* supporting recursion.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 ds/iprange.h
@@ -3,17 +3,17 @@
* supporting recursion.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
2  sdt/base32.c
@@ -1,5 +1,5 @@
/* (PD) 2001 The Bitzi Corporation
- * Please see file COPYING or http://bitzi.com/publicdomain
+ * Please see file COPYING or http://bitzi.com/publicdomain
* for more info.
*
* $Id: base32.c,v 1.1.1.1 2008-02-24 12:28:23 user Exp $
View
8 sdt/sdt.c
@@ -2,17 +2,17 @@
* Socket over DNS client.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -282,7 +282,7 @@ sdt_loop_A(SDT_STATE *ss)
ssize_t
sdt_read(SDT_STATE *ss, int fd, char *buf, size_t nbytes)
-{
+{
size_t n = 0;
size_t t = 0;
View
8 sdt/sdt.h
@@ -2,17 +2,17 @@
* Socket over DNS client.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -114,7 +114,7 @@ typedef struct _SDT_STATE {
char **dname;
int dname_max;
int dname_iterator;
- SDT_ID sess;
+ SDT_ID sess;
size_t sum;
size_t sum_up;
size_t bufsz;
View
10 sdt/sdt_dns.c
@@ -2,17 +2,17 @@
* Socket over DNS client.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -274,7 +274,7 @@ sdt_dns_dec_TXT(SDT_STATE *ss, u_char *data, u_int16_t *n)
(void)memcpy(rec.data, p+1, *p);
/* Remove base64 linefeeds used for formatting */
- while ( (lf = strchr(rec.data, 0x0A)) != NULL)
+ while ( (lf = strchr(rec.data, 0x0A)) != NULL)
(void)memmove(lf, lf+1, strlen(lf));
if (base64_decode_alloc(rec.data, strlen(rec.data), &out, &outlen) == 0) {
@@ -332,7 +332,7 @@ sdt_dns_dec_NULL(SDT_STATE *ss, u_char *data, u_int16_t *n)
return (NULL);
/* Remove base64 linefeeds used for formatting */
- while ( (lf = strchr((char *)data, 0x0A)) != NULL)
+ while ( (lf = strchr((char *)data, 0x0A)) != NULL)
(void)memmove(lf, lf+1, strlen(lf));
if (base64_decode_alloc((char *)data, *n, &out, &outlen) == 0) {
View
6 sdt/sdt_err.c
@@ -2,17 +2,17 @@
* Socket over DNS client.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sdt/sdt_rand.c
@@ -2,17 +2,17 @@
* Socket over DNS client.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
8 sdt/sdt_servers.h
@@ -2,17 +2,17 @@
* Socket over DNS client.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -23,7 +23,7 @@ typedef struct _SDT_SERV {
char *name;
char *descr;
char *addr;
-} SDS_SERV;
+} SDS_SERV;
static SDS_SERV dnsserv[] = {
{"opendns", "resolver1.opendns.com", "208.67.222.222"},
View
2  sods/base32.c
@@ -1,5 +1,5 @@
/* (PD) 2001 The Bitzi Corporation
- * Please see file COPYING or http://bitzi.com/publicdomain
+ * Please see file COPYING or http://bitzi.com/publicdomain
* for more info.
*
* $Id: base32.c,v 1.1 2008-03-23 01:10:13 user Exp $
View
8 sods/sods.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -184,7 +184,7 @@ sds_print_forward(SDS_STATE *ss)
void
sds_timestamp(void)
{
- char outstr[200];
+ char outstr[200];
time_t t;
struct tm *tmp;
View
6 sods/sods.h
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
20 sods/sods_dns.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -180,23 +180,23 @@ sds_dns_query_TXT(void *state, void *packet)
* Zero header, except for opcode and
* recursion request.
*
- * 7 9 0 0
+ * 7 9 0 0
* 0111 1001 0000 0000
* .111 1... .... .... opcode
* .... ...1 .... .... recursion desired
*
* Set response and authoritative bit.s
*
- * 8 4 8 0
+ * 8 4 8 0
* 1000 0000 0000 0000
* 1... .... .... .... message is a response
* .... .1.. .... .... authoritative server
* .... .... 1... .... recursion available
*
- * 0 0 0 5
+ * 0 0 0 5
* 0000 0000 0000 0101 error: REFUSED
*
- * 0 0 0 2
+ * 0 0 0 2
* 0000 0000 0000 0101 error: SERVFAIL
*
*/
@@ -292,7 +292,7 @@ sds_dns_enc_CNAME(void *state, void *packet)
p = buf;
/* Compressed name:
- *
+ *
* www.google.com
* CNAME: www.l.google.com
* <len><data><len><data><pointer>
@@ -300,7 +300,7 @@ sds_dns_enc_CNAME(void *state, void *packet)
*
* If there is no pointer, the domain
* name is null terminated.
- *
+ *
* www.apple.com
* CNAME: www.apple.com.akadns.net
*
@@ -312,7 +312,7 @@ sds_dns_enc_CNAME(void *state, void *packet)
* 03 6e 65 74 = net
* 00 = terminating NULL
*
- * NS_MAXLABEL includes the length
+ * NS_MAXLABEL includes the length
* byte.
*
*/
View
6 sods/sods_dns.h
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sods/sods_handler.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sods/sods_io.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sods/sods_io.h
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sods/sods_priv.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sods/sods_q.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
6 sods/sods_q.h
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
View
8 sods/sods_sock.c
@@ -2,17 +2,17 @@
* Socket over DNS server.
*
* Copyright (c) 2009 Michael Santos <michael.santos@gmail.com>
- *
+ *
* This program 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 3 of the License, or
* (at your option) any later version.
- *
+ *
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
*
@@ -73,7 +73,7 @@ sds_sock_loop(void *vp)
}
}
- int
+ int
sds_sock_recv(SDS_STATE *ss, SDS_PKT *pkt)
{
socklen_t len = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.