mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
os: make XNFvasprintf() static
Hadn't any outside callers for quite some time. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
8d728ba61f
commit
acc5a73385
2 changed files with 4 additions and 4 deletions
|
|
@ -53,8 +53,5 @@
|
|||
extern _X_EXPORT int /* deprecated */
|
||||
XNFasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, ...)
|
||||
_X_ATTRIBUTE_PRINTF(2, 3);
|
||||
extern _X_EXPORT int
|
||||
XNFvasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, va_list va)
|
||||
_X_ATTRIBUTE_VPRINTF(2, 0);
|
||||
|
||||
#endif /* XPRINTF_H */
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@
|
|||
#include "include/os.h"
|
||||
#include "include/Xprintf.h"
|
||||
|
||||
static int XNFvasprintf(char **ret, const char *_X_RESTRICT_KYWD fmt, va_list va)
|
||||
_X_ATTRIBUTE_PRINTF(2, 0);
|
||||
|
||||
/**
|
||||
* Varargs sprintf that allocates a string buffer the right size for
|
||||
* the pattern & data provided and prints the requested data to it.
|
||||
|
|
@ -78,7 +81,7 @@
|
|||
* @param va variable argument list
|
||||
* @return size of allocated buffer
|
||||
*/
|
||||
int
|
||||
static int
|
||||
XNFvasprintf(char **ret, const char *_X_RESTRICT_KYWD format, va_list va)
|
||||
{
|
||||
int size = vasprintf(ret, format, va);
|
||||
|
|
|
|||
Loading…
Reference in a new issue