Commit Diff
Diff:
a73d38f22f23c36c405b3d1d1a3187ff04383296
7b957ff547a1efd7b932082c1763478df84491a2
Commit:
7b957ff547a1efd7b932082c1763478df84491a2
Tree:
114100a0d1ed6d01216a25aacb763fa981b69117
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Thu Oct 26 15:49:29 2017 UTC
Message:
remove dead code and move Id to comments
blob - f5d4d050deaf6c9eb148ddc64849068b928071c1
blob + 0b12910994965d0589093d4660b4cd536c580417
--- additional.c
+++ additional.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: additional.c,v 1.16 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
@@ -42,8 +47,6 @@ extern int compress_label(u_char *, int, int);
extern void * find_substruct(struct domain *, u_int16_t);
extern int dnssec;
-
-static const char rcsid[] = "$Id: additional.c,v 1.15 2017/09/06 08:26:22 pjp Exp $";
/*
blob - 371a290061bd236f176517f5f6b7e82eeab6df58
blob + f9a08f0dc2d753fd6eb59ec7881eb6c141a1116c
--- axfr.c
+++ axfr.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: axfr.c,v 1.12 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
@@ -105,8 +110,6 @@ RB_HEAD(domaintree, node) rbhead;
RB_PROTOTYPE_STATIC(domaintree, node, rbentry, domaincmp)
RB_GENERATE_STATIC(domaintree, node, rbentry, domaincmp)
-
-static const char rcsid[] = "$Id: axfr.c,v 1.11 2017/08/09 15:34:17 pjp Exp $";
/*
* INIT_AXFR - initialize the axfr singly linked list
blob - 0c53099e6983a9092904079c64a40ba84dc78e94
blob + 39237ad258ef42cb0450b845a04732414bf49b5c
--- base64.c
+++ base64.c
@@ -42,6 +42,10 @@
* IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
*/
+/*
+ * $Id: base64.c,v 1.2 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
@@ -55,8 +59,6 @@
#include <stdlib.h>
#include <string.h>
-
-static const char rcsid[] = "$Id: base64.c,v 1.1 2014/11/21 09:04:41 pjp Exp $";
static const char Base64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
blob - 878ad94b4f4336619eafc21c0154fe6ca73503a1
blob + 9810402d57aad98e98db4e1573d783708905f3cd
--- db.c
+++ db.c
@@ -26,6 +26,10 @@
*
*/
+/*
+ * $Id: db.c,v 1.5 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
blob - aaa9308c3dcadf4f58209ae33ece191edad1ad2c
blob + e92e252e1556f3e79761dbea054a977edab90b33
--- dd-convert.c
+++ dd-convert.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: dd-convert.c,v 1.73 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
blob - e11b6c326d7aa9935275d356d77893c57bdd2584
blob + 5f58ce2f032a382a255c0368c843d8882926fb5c
--- ddd-db.h
+++ ddd-db.h
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: ddd-db.h,v 1.6 2017/10/26 15:49:29 pjp Exp $
+ */
+
#ifndef _DB_H
#define _DB_H
blob - 88c656bf2235e84ba58c12d48d2faf7e65ad52cb
blob + 67bf333b0b6c3fa0ca3455ca4281f04aa04c9b73
--- ddd-dns.h
+++ ddd-dns.h
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: ddd-dns.h,v 1.5 2017/10/26 15:49:29 pjp Exp $
+ */
+
#ifndef _DNS_H
#define _DNS_H
blob - 2ef79babee875b7b6c505b2cb44da50761e087a3
blob + 71cb27a75bc8e5af0c76cc891b59b30624cdfd52
--- ddd-include.h
+++ ddd-include.h
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: ddd-include.h,v 1.8 2017/10/26 15:49:29 pjp Exp $
+ */
+
#ifndef _INCLUDES_H
#define _INCLUDES_H
blob - 486806e5d555b646d47129ddf04236d747d7b177
blob + 42d5b47ff6536fb218db9ab7cd2aefb861b0be95
--- delphinusdnsd.c
+++ delphinusdnsd.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: delphinusdnsd.c,v 1.24 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
@@ -150,8 +155,6 @@ char *versionstring = DD_VERSION;
uint8_t vslen = DD_VERSION_LEN;
#endif
int *ptr = NULL;
-
-static const char rcsid[] = "$Id: delphinusdnsd.c,v 1.23 2017/10/04 18:51:36 pjp Exp $";
/*
* MAIN - set up arguments, set up database, set up sockets, call mainloop
blob - 30c71c649c5b0e9ac60319213042b301409999cb
blob + 2251bb855d8882de53c83d45f5e6ce69d77de359
--- dnssec.c
+++ dnssec.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: dnssec.c,v 1.18 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
blob - 798c19177b8d4db6f23189bf515b40b1b0ce8056
blob + 8985d3e4646c52a31383105580ff0a3a7f8004b8
--- endian.h
+++ endian.h
@@ -1,4 +1,7 @@
-/* $OpenBSD: endian.h,v 1.18 2006/03/27 07:09:24 otto Exp $ */
+/*
+ * $OpenBSD: endian.h,v 1.18 2006/03/27 07:09:24 otto Exp $
+ * $Id: endian.h,v 1.2 2017/10/26 15:49:29 pjp Exp $
+ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
blob - 56ef657aa4c05ea3abd5fce3be7e27bf85c2b1cf
blob + 1e2c7f0d329a722ba59bb35d3eb5e7c4f207abe4
--- ent.c
+++ ent.c
@@ -26,6 +26,10 @@
*
*/
+/*
+ * $Id: ent.c,v 1.4 2017/10/26 15:49:29 pjp Exp $
+ */
+
/*
* this file is based on whitelist.c
*/
@@ -52,24 +56,6 @@ static struct ententry {
u_int64_t flags;
SLIST_ENTRY(ententry) ent_entry;
} *ent2, *entp;
-
-
-static const char rcsid[] = "$Id: ent.c,v 1.3 2017/08/09 15:34:17 pjp Exp $";
-
-
-#if 0
-int
-domaincmp(struct node *e1, struct node *e2)
-{
- if (e1->len < e2->len)
- return -1;
- else if (e1->len > e2->len)
- return 1;
- else {
- return (memcmp(e1->domainname, e2->domainname, e1->len));
- }
-}
-#endif
extern int domaincmp(struct node *e1, struct node *e2);
blob - 99b2bf9715e305e10ed338923230821b5af06a3b
blob + 0173c4d858190f202a15491c8467a8df9dd46b76
--- filter.c
+++ filter.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: filter.c,v 1.4 2017/10/26 15:49:29 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
@@ -50,8 +55,6 @@ static struct filterentry {
SLIST_ENTRY(filterentry) filter_entry;
} *fn2, *fnp;
-
-static const char rcsid[] = "$Id: filter.c,v 1.3 2016/07/06 05:12:50 pjp Exp $";
/*
* INIT_FILTER - initialize the filter singly linked list
blob - 647fa4e84ed269c5214fa12f0bb4bfb1e72f41d2
blob + fd1cc5a40373ffb1ec41330cdd5092a3f2d98533
--- imsg-buffer.c
+++ imsg-buffer.c
@@ -16,7 +16,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+/*
+ * $Id: imsg-buffer.c,v 1.2 2017/10/26 15:49:29 pjp Exp $
+ */
+
+
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/socket.h>
@@ -28,8 +33,6 @@
#include <unistd.h>
#include "imsg.h"
-
-static const char rcsid[] = "$Id: imsg-buffer.c,v 1.1 2017/10/04 18:51:36 pjp Exp $";
int ibuf_realloc(struct ibuf *, size_t);
void ibuf_enqueue(struct msgbuf *, struct ibuf *);
blob - 9cd441539045e090e45ea9cd1a45e03e338dbb17
blob + 83d228d2426dd796ca5174fa8cb92ca195c44c81
--- imsg.c
+++ imsg.c
@@ -16,7 +16,12 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+/*
+ * $Id: imsg.c,v 1.2 2017/10/26 15:49:29 pjp Exp $
+ */
+
+
#include <sys/param.h>
#include <sys/queue.h>
#include <sys/socket.h>
@@ -28,8 +33,6 @@
#include <unistd.h>
#include "imsg.h"
-
-static const char rcsid[] = "$Id: imsg.c,v 1.1 2017/10/04 18:51:36 pjp Exp $";
int imsg_fd_overhead = 0;
blob - 08e76adf303d968bce2693aa331e73d0dea3c704
blob + f3eaaac051eaba1aacff2c5949a88fa5ae706d84
--- log.c
+++ log.c
@@ -26,6 +26,11 @@
*
*/
+/*
+ * $Id: log.c,v 1.4 2017/10/26 15:49:29 pjp Exp $
+ */
+
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
blob - 8e60885fd64e65b991f1747f52351940e175b1ae
blob + f7af8c2221102fb4bc4793dac4f2d5ba339977c3
--- ratelimit.c
+++ ratelimit.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: ratelimit.c,v 1.4 2017/10/26 15:49:30 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
blob - 6a3abdf5e168713d0288d9d2051739f2b9fcaf33
blob + 14f6b85c6fbd916ce15798c507447e9ec12c2b66
--- region.c
+++ region.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: region.c,v 1.5 2017/10/26 15:49:30 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
@@ -47,8 +52,6 @@ static struct regionentry {
SLIST_ENTRY(regionentry) region_entry;
} *n2, *np;
-
-static const char rcsid[] = "$Id: region.c,v 1.4 2017/06/26 20:28:50 pjp Exp $";
/*
* INIT_REGION - initialize the region singly linked list
blob - e581ca2608988c813b41e9dbb18fa00a3fd8f5e0
blob + 06a0bebc28206200861518e6800af0f4a696f644
--- reply.c
+++ reply.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: reply.c,v 1.60 2017/10/26 15:49:30 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
@@ -108,8 +113,6 @@ extern uint8_t vslen;
} \
outlen = tmplen; \
} while (0);
-
-static const char rcsid[] = "$Id: reply.c,v 1.59 2017/10/04 15:41:32 pjp Exp $";
/*
* REPLY_A() - replies a DNS question (*q) on socket (so)
blob - f32f5db1f24b1c0e4fa3439089c77b2f76d67e10
blob + d5b8cca4359a7b411ba908e8173e8a4d5a39e51c
--- util.c
+++ util.c
@@ -25,6 +25,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
+
+/*
+ * $Id: util.c,v 1.14 2017/10/26 15:49:30 pjp Exp $
+ */
+
#include "ddd-include.h"
#include "ddd-dns.h"
#include "ddd-db.h"
blob - 77b07458756275c9dd41a6ebb23d98a859102984
blob + b5003aae72f7cdb86c85e623e224f00a97effdcb
--- whitelist.c
+++ whitelist.c
@@ -26,6 +26,11 @@
*
*/
+/*
+ * $Id: whitelist.c,v 1.4 2017/10/26 15:49:30 pjp Exp $
+ */
+
+
/*
* this file is based on filter.c
*/
@@ -57,8 +62,6 @@ static struct whitelistentry {
SLIST_ENTRY(whitelistentry) whitelist_entry;
} *wln2, *wlnp;
-
-static const char rcsid[] = "$Id: whitelist.c,v 1.3 2016/07/06 05:12:51 pjp Exp $";
/*
* INIT_FILTER - initialize the whitelist singly linked list
repomaster@centroid.eu