From 8f53239ad7aa65e198402b3ce20a4a47d7dca279 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 18 May 2024 15:34:43 -0700 Subject: Raise minimum supported Xserver version to 1.18 (ABI_VIDEODRV_VERSION 20.0) Already effectively required by use of XNFcallocarray() introduced in xorg/xserver@b96dc999 - xserver-1.18.0, released in Nov. 2015. Allows dropping remnants of code for XAA and pre-pciaccess X servers Signed-off-by: Alan Coopersmith Part-of: --- src/smi_video.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/smi_video.c') diff --git a/src/smi_video.c b/src/smi_video.c index 62de55d..d3b7a42 100644 --- a/src/smi_video.c +++ b/src/smi_video.c @@ -519,17 +519,11 @@ SMI_AddEncoding(XF86VideoEncodingPtr enc, int i, norm_string = VideoNorms[norm].name; input_string = VideoInputs[input].name; snprintf(channel_string, sizeof(channel_string), "%d", channel); - enc[i].id = i; -#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 10 if (Xasprintf(&name_string, "%s-%s-%s", norm_string, input_string, channel_string) < 0) LEAVE(-1); -#else - name_string = Xprintf("%s-%s-%s", - norm_string, input_string, channel_string); - if (NULL == name_string) - LEAVE(-1); -#endif + + enc[i].id = i; enc[i].name = name_string; enc[i].width = VideoNorms[norm].Wa; -- cgit v1.2.3