From d86d6eb281ba99fca1bb39ad3dc05c5681dded5d Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 23 Jun 2016 21:07:36 +0100 Subject: Silence compiler warnings for expected and handled error conditions Silly compiler emitting warnings that just cause people to break code attempting to silence the compiler. Signed-off-by: Chris Wilson --- lib/drmtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/drmtest.c') diff --git a/lib/drmtest.c b/lib/drmtest.c index 9a1232f4..632fec41 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -218,11 +218,11 @@ int drm_get_card(void) return -1; } -static void modprobe(const char *driver) +static int modprobe(const char *driver) { char buf[128]; snprintf(buf, sizeof(buf), "/sbin/modprobe -s %s", driver); - system(buf); + return system(buf); } /** -- cgit v1.2.3