From patchwork Fri Feb 27 18:07:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Vesely X-Patchwork-Id: 5902341 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6BB9E9F36A for ; Fri, 27 Feb 2015 18:07:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 97B6B2026D for ; Fri, 27 Feb 2015 18:07:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DED032021F for ; Fri, 27 Feb 2015 18:07:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A06CC6E92F; Fri, 27 Feb 2015 10:07:35 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qa0-f44.google.com (mail-qa0-f44.google.com [209.85.216.44]) by gabe.freedesktop.org (Postfix) with ESMTP id 7AD2E6E92E for ; Fri, 27 Feb 2015 10:07:31 -0800 (PST) Received: by mail-qa0-f44.google.com with SMTP id n8so13911413qaq.3 for ; Fri, 27 Feb 2015 10:07:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=DqyXm2mW/kZ6YUGZs6GwehgPegf8xOaIzbwdoiUCXGw=; b=h+wsVwhh6mI49UPHRC54KNf1qMu0+6ePrsHIHwvlB6DHm7PtP+MyiE8uFLx4IiZoJR ro4012y2ud6FIGi4X2/9u33V02aYsBhc7yFO2fwXU1khn9r6HOuX8YrmHNwvNwWZ1fyP 0Lk+oaLuh2H51Cc1I2MdkbD+kGsvDfiiOhn6C57GnjbmBg9n+BBPre32RROIp6Ivvpp5 JCHGIPXqStZICUPHwg0jC17lCHTgwUVNzPsRd2HlVCqAp++65npOUeCIJSG7OmRn9/8B EIsCk5CIYWz72KMpPhjFIjxmj+vomxZqnZyIOAhfeTG3YfvoanxDpQMXUYfv+uemgy9w VDog== X-Gm-Message-State: ALoCoQnXUI1IwehaLS8kQ500MG72uD3fpRSzLRpeBoItRcIhKNJ+Lk0lWkGAWDAQJfOJXUxYWpt6 X-Received: by 10.140.148.195 with SMTP id 186mr30845117qhu.60.1425060451047; Fri, 27 Feb 2015 10:07:31 -0800 (PST) Received: from adriatix.rutgers.edu ([198.151.130.147]) by mx.google.com with ESMTPSA id 70sm3062318qhe.29.2015.02.27.10.07.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Feb 2015 10:07:30 -0800 (PST) From: Jan Vesely To: Emil Velikov , dri-devel@lists.freedesktop.org Subject: [PATCH libdrm 2/8] tests: String literals are const char * Date: Fri, 27 Feb 2015 13:07:22 -0500 Message-Id: <1425060448-5315-3-git-send-email-jan.vesely@rutgers.edu> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1425060448-5315-1-git-send-email-jan.vesely@rutgers.edu> References: <1425060448-5315-1-git-send-email-jan.vesely@rutgers.edu> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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: Jan Vesely --- tests/kmstest/main.c | 2 +- tests/proptest/proptest.c | 2 +- tests/vbltest/vbltest.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/kmstest/main.c b/tests/kmstest/main.c index d8c6c1f..1d4c63e 100644 --- a/tests/kmstest/main.c +++ b/tests/kmstest/main.c @@ -56,7 +56,7 @@ static int test_bo(struct kms_driver *kms) return 0; } -char *drivers[] = { +static const char *drivers[] = { "i915", "radeon", "nouveau", diff --git a/tests/proptest/proptest.c b/tests/proptest/proptest.c index 3496065..9b2eb3f 100644 --- a/tests/proptest/proptest.c +++ b/tests/proptest/proptest.c @@ -303,7 +303,7 @@ static void printUsage(void) int main(int argc, char *argv[]) { - char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "msm" }; + const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "msm" }; unsigned int i, ret = 0; for (i = 0; i < ARRAY_SIZE(modules); i++){ diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c index 916d494..02fefbf 100644 --- a/tests/vbltest/vbltest.c +++ b/tests/vbltest/vbltest.c @@ -106,7 +106,7 @@ int main(int argc, char **argv) { unsigned i; int c, fd, ret; - char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra", "imx-drm" }; + const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra", "imx-drm" }; drmVBlank vbl; drmEventContext evctx; struct vbl_info handler_info;