summaryrefslogtreecommitdiffstats
path: root/lib/libc/asr/asr_debug.c
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2013-07-12 14:36:21 +0000
committereric <eric@openbsd.org>2013-07-12 14:36:21 +0000
commit5bd9e5c284f6235d605131b22206379ec6631db2 (patch)
tree746b9f2fc974ad8c0a70f90e1a7ea63fbbfed8b0 /lib/libc/asr/asr_debug.c
parentSimple partial sync to bsd.lv: (diff)
downloadwireguard-openbsd-5bd9e5c284f6235d605131b22206379ec6631db2.tar.xz
wireguard-openbsd-5bd9e5c284f6235d605131b22206379ec6631db2.zip
Make some symbols static and prefix all visible symbols with asr_
to prevent collisions with third-party programs. suggested by sthen@, ok theo@
Diffstat (limited to 'lib/libc/asr/asr_debug.c')
-rw-r--r--lib/libc/asr/asr_debug.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/asr/asr_debug.c b/lib/libc/asr/asr_debug.c
index 8cc54e2062f..620d674f508 100644
--- a/lib/libc/asr/asr_debug.c
+++ b/lib/libc/asr/asr_debug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr_debug.c,v 1.13 2013/05/27 17:31:01 eric Exp $ */
+/* $OpenBSD: asr_debug.c,v 1.14 2013/07/12 14:36:21 eric Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
@@ -173,9 +173,9 @@ asr_dump_packet(FILE *f, const void *data, size_t len)
if (f == NULL)
return;
- unpack_init(&p, data, len);
+ asr_unpack_init(&p, data, len);
- if (unpack_header(&p, &h) == -1) {
+ if (asr_unpack_header(&p, &h) == -1) {
fprintf(f, ";; BAD PACKET: %s\n", p.err);
return;
}
@@ -185,7 +185,7 @@ asr_dump_packet(FILE *f, const void *data, size_t len)
if (h.qdcount)
fprintf(f, ";; QUERY SECTION:\n");
for (i = 0; i < h.qdcount; i++) {
- if (unpack_query(&p, &q) == -1)
+ if (asr_unpack_query(&p, &q) == -1)
goto error;
fprintf(f, "%s\n", print_query(&q, buf, sizeof buf));
}
@@ -203,7 +203,7 @@ asr_dump_packet(FILE *f, const void *data, size_t len)
if (i == ar)
fprintf(f, "\n;; ADDITIONAL SECTION:\n");
- if (unpack_rr(&p, &rr) == -1)
+ if (asr_unpack_rr(&p, &rr) == -1)
goto error;
fprintf(f, "%s\n", print_rr(&rr, buf, sizeof buf));
}