Prefix private types with priv_ too

This commit is contained in:
Willem Toorop 2015-02-14 12:30:51 +01:00
parent e0ab471de8
commit 2dcc0a0da6
3 changed files with 11 additions and 11 deletions

View File

@ -34,8 +34,8 @@
#include <gldns/pkthdr.h>
#include <gldns/gbuffer.h>
static getdns_rr_iter *
find_rrtype(getdns_rr_iter *i)
static priv_getdns_rr_iter *
find_rrtype(priv_getdns_rr_iter *i)
{
size_t dlen;
uint8_t *pos;
@ -78,8 +78,8 @@ find_rrtype(getdns_rr_iter *i)
return NULL;
}
getdns_rr_iter *
priv_getdns_rr_iter_init(getdns_rr_iter *i, uint8_t *pkt, size_t pkt_len)
priv_getdns_rr_iter *
priv_getdns_rr_iter_init(priv_getdns_rr_iter *i, uint8_t *pkt, size_t pkt_len)
{
if (pkt_len < GLDNS_HEADER_SIZE + 5)
return NULL;
@ -93,8 +93,8 @@ priv_getdns_rr_iter_init(getdns_rr_iter *i, uint8_t *pkt, size_t pkt_len)
}
getdns_rr_iter *
priv_getdns_rr_iter_next(getdns_rr_iter *i)
priv_getdns_rr_iter *
priv_getdns_rr_iter_next(priv_getdns_rr_iter *i)
{
size_t dlen;

View File

@ -34,18 +34,18 @@
#include "getdns/getdns.h"
typedef struct getdns_rr_iter {
typedef struct priv_getdns_rr_iter {
uint8_t *pkt;
size_t pkt_len;
size_t n; /* Which RR are we currently at */
uint8_t *pos;
uint8_t *rr_type;
} getdns_rr_iter;
} priv_getdns_rr_iter;
getdns_rr_iter *priv_getdns_rr_iter_init(getdns_rr_iter *i,
priv_getdns_rr_iter *priv_getdns_rr_iter_init(priv_getdns_rr_iter *i,
uint8_t *pkt, size_t pkt_len);
getdns_rr_iter *priv_getdns_rr_iter_next(getdns_rr_iter *i);
priv_getdns_rr_iter *priv_getdns_rr_iter_next(priv_getdns_rr_iter *i);
#endif

View File

@ -505,7 +505,7 @@ create_getdns_response(getdns_dns_req *completed_request)
/* info (bools) about dns_req */
int dnssec_return_status;
char *str_pkt;
getdns_rr_iter rr_iter_storage, *rr_iter;
priv_getdns_rr_iter rr_iter_storage, *rr_iter;
for ( netreq_p = completed_request->netreqs
; ! r && (netreq = *netreq_p)