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: 1236899 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-109589-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=r+2mFR0C; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=PlCHvKAj; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Hhy33S1Kz9s1x for ; Thu, 13 Feb 2020 01:35:23 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:in-reply-to:references :message-id:date:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=MJ8zq2t5HypGJKKH LAYXQCY8KBstCwttzTTCeveFH8zV42RgycdfPxzsVvqTSGIykp9hw9ZWbdi+1Ruy GOxhNYeBzgpJrcGYkNWYs5k5KFRzKIoeL3UKKtw4SvHCnxOnfbz0QuNf9GJ368O8 R57Wo+8Ekuy679KDmxFddI0EUZQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:in-reply-to:references :message-id:date:mime-version:content-type :content-transfer-encoding; s=default; bh=Lh92A3wCXAkFZqTNxDGuUv k52WI=; b=r+2mFR0Ci9OL6VleBJnpJ9E+yczCTT9Zih8CNVpIZsfKZRXuXltt/1 658WV1K4aJXxAo9toYpFcdU8MXQJX+Fs390epurYGg1uhznx56l9yoQ63PNF30W1 Ccl7GtJNHLJqVc5AIz63C/RSuhRA47y0vVC9barcZqdKmjiXTUqPI= 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;