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 1RBYYl-0003re-6L for garchives@archives.gentoo.org; Wed, 05 Oct 2011 20:59:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A77821C192; Wed, 5 Oct 2011 20:56:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1BA1721C179 for ; Wed, 5 Oct 2011 20:56:51 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 806C91B403D for ; Wed, 5 Oct 2011 20:56:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 8130A80058 for ; Wed, 5 Oct 2011 20:56:50 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: Subject: [gentoo-commits] proj/layman:master commit in: src/ X-VCS-Repository: proj/layman X-VCS-Files: src/runner.c X-VCS-Directories: src/ X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: c9f9363987db6dd3304d059a86574bb3635ceb14 Date: Wed, 5 Oct 2011 20:56:50 +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: X-Archives-Hash: e409404b54727b97addeeaac0440876d commit: c9f9363987db6dd3304d059a86574bb3635ceb14 Author: Detlev Casanova gmail com> AuthorDate: Tue Jul 6 12:07:58 2010 +0000 Commit: Brian Dolbec gmail com> CommitDate: Tue Jul 6 12:07:58 2010 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3Dc9f93639 Fix runner to run without argument --- src/runner.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runner.c b/src/runner.c index 628ac9a..61c342a 100644 --- a/src/runner.c +++ b/src/runner.c @@ -24,7 +24,7 @@ struct Runner { int main(int argc, char* argv[]) { // Tries to compare 2 packages version. - if (argc < 3) + /*if (argc < 3) { printf("Please provide 2 packages.\n"); return -1; @@ -33,10 +33,10 @@ int main(int argc, char* argv[]) char *str =3D malloc((strlen(argv[1]) + strlen(argv[2]) + 2) * sizeof(c= har)); =20 sprintf(str, "%s %s", argv[1], argv[2]); - + */ Runner *r =3D createRunner(); r->writeStdout =3D stdoutWritten; - int ret =3D execute(r, str); + int ret =3D execute(r, ""); =09 if (ret < 0) printf("Execution error\n");