From patchwork Wed Feb 12 14:34:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37999 Received: (qmail 36534 invoked by alias); 12 Feb 2020 14:34:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 36471 invoked by uid 89); 12 Feb 2020 14:34:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581518086; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DRE3xZP5HB4GSL241mxNbEFki0LfDbwyUkVWkoHEPr4=; b=PlCHvKAjVnNxCha68F/kGG3gATcJwZWACsIAwpEwk3SaHw5LAmEzSP1kdIf9SvcA8Ggfbw 05lBTgmb+YML5tg261NcAmihmsND3TwnanMlsApr4CbpjHHuLU3w2HMIQusXWI3uDTMKkC QLmMOtBmtrWKgEzsOX0HiOJiiFGedsc= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 5/7] nss_db: Use NSS_DECLARE_MODULE_FUNCTIONS In-Reply-To: References: X-From-Line: 977f5ffca9e97adedcd9025198dd9c5071d52f9b Mon Sep 17 00:00:00 2001 Message-Id: <977f5ffca9e97adedcd9025198dd9c5071d52f9b.1581517927.git.fweimer@redhat.com> Date: Wed, 12 Feb 2020 15:34:41 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com --- nss/nss_db/db-init.c | 2 ++ nss/nss_db/db-initgroups.c | 1 - nss/nss_db/nss_db.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/nss/nss_db/db-init.c b/nss/nss_db/db-init.c index 1ba5b70dfd..6f48b821f3 100644 --- a/nss/nss_db/db-init.c +++ b/nss/nss_db/db-init.c @@ -22,6 +22,8 @@ #include #include +#include "nss_db.h" + #define PWD_FILENAME (_PATH_VARDB "passwd.db") define_traced_file (pwd, PWD_FILENAME); diff --git a/nss/nss_db/db-initgroups.c b/nss/nss_db/db-initgroups.c index 0ea81c90bb..a8c39d68d9 100644 --- a/nss/nss_db/db-initgroups.c +++ b/nss/nss_db/db-initgroups.c @@ -32,7 +32,6 @@ /* The hashing function we use. */ #include "../intl/hash-string.h" - enum nss_status _nss_db_initgroups_dyn (const char *user, gid_t group, long int *start, long int *size, gid_t **groupsp, long int limit, diff --git a/nss/nss_db/nss_db.h b/nss/nss_db/nss_db.h index 24942f5ec9..e354909c58 100644 --- a/nss/nss_db/nss_db.h +++ b/nss/nss_db/nss_db.h @@ -23,6 +23,7 @@ #include #include +NSS_DECLARE_MODULE_FUNCTIONS (db) /* String table index type. */ typedef uint32_t stridx_t;