mirror of
https://github.com/X11Libre/xf86-video-v4l.git
synced 2026-03-23 17:19:49 +00:00
Use asprintf() instead of Xasprintf()
This driver is Linux-only, so it's safe to assume asprintf() here. It's one of the last few drivers ever using that function, so blocking its removal from Xorg ABI. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
@@ -911,7 +915,7 @@ AddV4LEnc(XF86VideoEncodingPtr enc, int entry,
|
||||
char *name;
|
||||
|
||||
#if ABI_VIDEODRV_VERSION >= SET_ABI_VERSION(10, 0)
|
||||
if (Xasprintf(&name, "%s-%s", norm, fixname(input)) < 0)
|
||||
if (asprintf(&name, "%s-%s", norm, fixname(input)) < 0)
|
||||
name = NULL;
|
||||
#else
|
||||
name = Xprintf("%s-%s", norm, fixname(input));
|
||||
|
||||
Reference in New Issue
Block a user