From patchwork Wed Apr 9 22:26:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Roth?= X-Patchwork-Id: 3957851 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8EE4BBFF02 for ; Wed, 9 Apr 2014 22:27:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C0D7D2063D for ; Wed, 9 Apr 2014 22:27:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D90C520639 for ; Wed, 9 Apr 2014 22:27:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934124AbaDIW1Y (ORCPT ); Wed, 9 Apr 2014 18:27:24 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:50989 "EHLO mail-ee0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933776AbaDIW1W (ORCPT ); Wed, 9 Apr 2014 18:27:22 -0400 Received: by mail-ee0-f50.google.com with SMTP id c13so2419270eek.9 for ; Wed, 09 Apr 2014 15:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=bnlrOwhhFZ3U5UwAtx5lEG7tjZ+DDWIlDEjRO07dUwQ=; b=AWFtJvBTmgH1G8AwRdVO10ow0QTA8C5NV15CXAaViul4vk4+pauTu6DF4qyQRlZMm1 il2WQoQ5JYhlekvMb82cfopgNKoQ87NjqRRddFJ6jg/9jpo1EY0EKtinTvuFqq+198HM 9iEf/8aHwWW91gLAyBd97g6noiXLbjJViSfBeUCuV3pELqFduPIXsbYfmED/CiuxPLiK rrUPVPJCeNcQfEeY3Ie/eMKxHF8n07+aXTJxtplka50rnqutelJEDsR6bWxDEkcxejRN K8xp0uitHJOGOSOyRYmYiREZrGzUzugUa7jf5qF/nz5fpIsZ9BA3LDunX4Ejrh4tAiXy ggrw== X-Received: by 10.14.251.204 with SMTP id b52mr15213343ees.36.1397082441147; Wed, 09 Apr 2014 15:27:21 -0700 (PDT) Received: from exciton.exnihilo. (29-206.60-188.cust.bluewin.ch. [188.60.206.29]) by mx.google.com with ESMTPSA id t44sm5306199eeo.6.2014.04.09.15.27.20 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 15:27:20 -0700 (PDT) From: =?UTF-8?q?Andr=C3=A9=20Roth?= To: linux-media@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Roth?= Subject: [PATCH 2/7] libdvbv5: fix asprintf compile warning in dvbv5-scan Date: Thu, 10 Apr 2014 00:26:55 +0200 Message-Id: <1397082420-31198-2-git-send-email-neolynx@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1397082420-31198-1-git-send-email-neolynx@gmail.com> References: <1397082420-31198-1-git-send-email-neolynx@gmail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: André Roth --- utils/dvb/dvbv5-scan.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-scan.c b/utils/dvb/dvbv5-scan.c index 501b332..7eb3bf5 100644 --- a/utils/dvb/dvbv5-scan.c +++ b/utils/dvb/dvbv5-scan.c @@ -407,6 +407,7 @@ int main(int argc, char **argv) { struct arguments args; int err, lnb = -1,idx = -1; + int r; const struct argp argp = { .options = options, .parser = parse_opt, @@ -459,8 +460,12 @@ int main(int argc, char **argv) return -1; } - asprintf(&args.demux_dev, + r = asprintf(&args.demux_dev, "/dev/dvb/adapter%i/demux%i", args.adapter_dmx, args.demux); + if (r < 0) { + fprintf(stderr, "asprintf error\n" ); + return -1; + } if (verbose) fprintf(stderr, "using demux '%s'\n", args.demux_dev);