From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D4D29139695 for ; Mon, 24 Jul 2017 23:27:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BF71E0D12; Mon, 24 Jul 2017 23:27:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF1AFE0D12 for ; Mon, 24 Jul 2017 23:27:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AC7A1341872 for ; Mon, 24 Jul 2017 23:27:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9A13D74A5 for ; Mon, 24 Jul 2017 23:27:08 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1500938658.6d4e8433974fd8567885635ae0454031290f96b1.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/fstabinfo.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 6d4e8433974fd8567885635ae0454031290f96b1 X-VCS-Branch: master Date: Mon, 24 Jul 2017 23:27:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 38e6415f-9e37-4d9b-833e-30396a47a068 X-Archives-Hash: 11569f3eebe338a66b99e95b3d26e098 commit: 6d4e8433974fd8567885635ae0454031290f96b1 Author: Jason Graham gmail com> AuthorDate: Mon Jul 24 23:22:46 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Mon Jul 24 23:24:18 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=6d4e8433 fix ENT macro usage X-Gentoo-Bug: 624796 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=624796 src/rc/fstabinfo.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/rc/fstabinfo.c b/src/rc/fstabinfo.c index 75c8bc2b..a2e707aa 100644 --- a/src/rc/fstabinfo.c +++ b/src/rc/fstabinfo.c @@ -35,11 +35,11 @@ # define GET_ENT getmntent (fp) # define GET_ENT_FILE(_name) getmntfile (_name) # define END_ENT endmntent (fp) -# define ENT_BLOCKDEVICE(_ent) ent->mnt_fsname -# define ENT_FILE(_ent) ent->mnt_dir -# define ENT_TYPE(_ent) ent->mnt_type -# define ENT_OPTS(_ent) ent->mnt_opts -# define ENT_PASS(_ent) ent->mnt_passno +# define ENT_BLOCKDEVICE(_ent) (_ent)->mnt_fsname +# define ENT_FILE(_ent) (_ent)->mnt_dir +# define ENT_TYPE(_ent) (_ent)->mnt_type +# define ENT_OPTS(_ent) (_ent)->mnt_opts +# define ENT_PASS(_ent) (_ent)->mnt_passno #else # define HAVE_GETFSENT # include @@ -48,11 +48,11 @@ # define GET_ENT getfsent () # define GET_ENT_FILE(_name) getfsfile (_name) # define END_ENT endfsent () -# define ENT_BLOCKDEVICE(_ent) ent->fs_spec -# define ENT_TYPE(_ent) ent->fs_vfstype -# define ENT_FILE(_ent) ent->fs_file -# define ENT_OPTS(_ent) ent->fs_mntops -# define ENT_PASS(_ent) ent->fs_passno +# define ENT_BLOCKDEVICE(_ent) (_ent)->fs_spec +# define ENT_TYPE(_ent) (_ent)->fs_vfstype +# define ENT_FILE(_ent) (_ent)->fs_file +# define ENT_OPTS(_ent) (_ent)->fs_mntops +# define ENT_PASS(_ent) (_ent)->fs_passno #endif #include "einfo.h" @@ -114,24 +114,24 @@ do_mount(struct ENT *ent, bool remount) argv[0] = UNCONST("mount"); argv[1] = UNCONST("-o"); - argv[2] = ENT_OPTS(*ent); + argv[2] = ENT_OPTS(ent); argv[3] = UNCONST("-t"); - argv[4] = ENT_TYPE(*ent); + argv[4] = ENT_TYPE(ent); if (!remount) { - argv[5] = ENT_BLOCKDEVICE(*ent); - argv[6] = ENT_FILE(*ent); + argv[5] = ENT_BLOCKDEVICE(ent); + argv[6] = ENT_FILE(ent); argv[7] = NULL; } else { #ifdef __linux__ argv[5] = UNCONST("-o"); argv[6] = UNCONST("remount"); - argv[7] = ENT_BLOCKDEVICE(*ent); - argv[8] = ENT_FILE(*ent); + argv[7] = ENT_BLOCKDEVICE(ent); + argv[8] = ENT_FILE(ent); argv[9] = NULL; #else argv[5] = UNCONST("-u"); - argv[6] = ENT_BLOCKDEVICE(*ent); - argv[7] = ENT_FILE(*ent); + argv[6] = ENT_BLOCKDEVICE(ent); + argv[7] = ENT_FILE(ent); argv[8] = NULL; #endif }