Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143411716
D42190.id128985.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D42190.id128985.diff
View Options
diff --git a/lib/libc/net/hesiod.c b/lib/libc/net/hesiod.c
--- a/lib/libc/net/hesiod.c
+++ b/lib/libc/net/hesiod.c
@@ -81,8 +81,7 @@
* initialize a hesiod_p.
*/
int
-hesiod_init(context)
- void **context;
+hesiod_init(void **context)
{
struct hesiod_p *ctx;
const char *p, *configname;
@@ -130,8 +129,7 @@
* Deallocates the hesiod_p.
*/
void
-hesiod_end(context)
- void *context;
+hesiod_end(void *context)
{
struct hesiod_p *ctx = (struct hesiod_p *) context;
@@ -221,10 +219,7 @@
* by the resolver.
*/
char **
-hesiod_resolve(context, name, type)
- void *context;
- const char *name;
- const char *type;
+hesiod_resolve(void *context, const char *name, const char *type)
{
struct hesiod_p *ctx = (struct hesiod_p *) context;
char *bindname, **retvec;
@@ -243,9 +238,7 @@
/*ARGSUSED*/
void
-hesiod_free_list(context, list)
- void *context;
- char **list;
+hesiod_free_list(void *context, char **list)
{
char **p;
@@ -263,9 +256,7 @@
* or ctx->rhs which need to be freed by the caller.
*/
static int
-read_config_file(ctx, filename)
- struct hesiod_p *ctx;
- const char *filename;
+read_config_file(struct hesiod_p *ctx, const char *filename)
{
char *key, *data, *p, **which;
char buf[MAXDNAME + 7];
@@ -357,9 +348,7 @@
* return a list of them.
*/
static char **
-get_txt_records(qclass, name)
- int qclass;
- const char *name;
+get_txt_records(int qclass, const char *name)
{
HEADER *hp;
unsigned char qbuf[PACKETSZ], abuf[MAX_HESRESP], *p, *eom, *eor;
@@ -483,16 +472,14 @@
static int errval = HES_ER_UNINIT;
int
-hes_init()
+hes_init(void)
{
init_context();
return errval;
}
char *
-hes_to_bind(name, type)
- const char *name;
- const char *type;
+hes_to_bind(const char *name, const char *type)
{
static char *bindname;
if (init_context() < 0)
@@ -506,9 +493,7 @@
}
char **
-hes_resolve(name, type)
- const char *name;
- const char *type;
+hes_resolve(const char *name, const char *type)
{
static char **list;
@@ -529,20 +514,19 @@
}
int
-hes_error()
+hes_error(void)
{
return errval;
}
void
-hes_free(hp)
- char **hp;
+hes_free(char **hp)
{
hesiod_free_list(context, hp);
}
static int
-init_context()
+init_context(void)
{
if (!inited) {
inited = 1;
@@ -556,7 +540,7 @@
}
static void
-translate_errors()
+translate_errors(void)
{
switch (errno) {
case ENOENT:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 31, 3:42 AM (11 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28074025
Default Alt Text
D42190.id128985.diff (2 KB)
Attached To
Mode
D42190: hesiod: Modernize.
Attached
Detach File
Event Timeline
Log In to Comment