summaryrefslogtreecommitdiff
path: root/hesiod/nss_hesiod/hesiod-proto.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 14:28:23 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-12-27 14:28:23 +0000
commitdc3064332cec5ca6edc9a44f5f6111e506eb037b (patch)
tree79686327822b075f3970aec7ef73372142760047 /hesiod/nss_hesiod/hesiod-proto.c
parent86af500777f45066aa6a6817d4b695cf4b626c38 (diff)
parent963c37d5c0eb62b38f8764b23931c0dcdd497a13 (diff)
Merge commit 'refs/top-bases/cvs/exc2signal-template' into cvs/exc2signal-template
Diffstat (limited to 'hesiod/nss_hesiod/hesiod-proto.c')
-rw-r--r--hesiod/nss_hesiod/hesiod-proto.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hesiod/nss_hesiod/hesiod-proto.c b/hesiod/nss_hesiod/hesiod-proto.c
index 3c59e731ab..cf8813fe80 100644
--- a/hesiod/nss_hesiod/hesiod-proto.c
+++ b/hesiod/nss_hesiod/hesiod-proto.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997-2016 Free Software Foundation, Inc.
+/* Copyright (C) 1997-2018 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
@@ -25,8 +25,6 @@
#include <stdlib.h>
#include <string.h>
-#include "nss_hesiod.h"
-
/* Declare a parser for Hesiod protocol entries. Although the format
of the entries is identical to those in /etc/protocols, here is no
predefined parser for us to use. */
@@ -68,8 +66,7 @@ lookup (const char *name, const char *type, struct protoent *proto,
int found;
int olderr = errno;
- context = _nss_hesiod_init ();
- if (context == NULL)
+ if (hesiod_init (&context) < 0)
return NSS_STATUS_UNAVAIL;
list = hesiod_resolve (context, name, type);