From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Rgdzi-0003BK-Hv for garchives@archives.gentoo.org; Fri, 30 Dec 2011 15:03:42 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F1C421C11C; Fri, 30 Dec 2011 15:03:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 0DE2021C0F8 for ; Fri, 30 Dec 2011 15:03:34 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8C3D91B4004 for ; Fri, 30 Dec 2011 15:03:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 796C680051 for ; Fri, 30 Dec 2011 15:03:33 +0000 (UTC) From: "Christian Ruppert" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Christian Ruppert" Message-ID: <372745844b422a0898599cb4019e29dc9f909e6f.idl0r@gentoo> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/rc.c X-VCS-Directories: src/rc/ X-VCS-Committer: idl0r X-VCS-Committer-Name: Christian Ruppert X-VCS-Revision: 372745844b422a0898599cb4019e29dc9f909e6f Date: Fri, 30 Dec 2011 15:03:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 493b372a-1306-4ad2-b10b-ac480807c209 X-Archives-Hash: 4c72d518f72816171eeb1955eb7ab575 commit: 372745844b422a0898599cb4019e29dc9f909e6f Author: Christian Ruppert gentoo org> AuthorDate: Fri Dec 30 15:02:44 2011 +0000 Commit: Christian Ruppert gentoo org> CommitDate: Fri Dec 30 15:03:24 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D37274584 Code style fixes --- src/rc/rc.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rc/rc.c b/src/rc/rc.c index 05c99fa..9ee3047 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -188,11 +188,11 @@ proc_getent(const char *ent) if (rc_getline(&proc, &i, fp) =3D=3D -1 || proc =3D=3D NULL) eerror("rc_getline: %s", strerror(errno)); =20 - if(proc !=3D NULL) { + if (proc !=3D NULL) { len =3D strlen(ent); =20 - while((p =3D strsep(&proc, " "))) { - if(strncmp(ent, p, len) =3D=3D 0 && (p[len] =3D=3D '\0' || p[len] =3D= =3D ' ' || p[len] =3D=3D '=3D')) { + while ((p =3D strsep(&proc, " "))) { + if (strncmp(ent, p, len) =3D=3D 0 && (p[len] =3D=3D '\0' || p[len] =3D= =3D ' ' || p[len] =3D=3D '=3D')) { p +=3D len; =20 if (*p =3D=3D '=3D') @@ -203,7 +203,7 @@ proc_getent(const char *ent) } } =20 - if(!value) + if (!value) errno =3D ENOENT; =20 fclose(fp);