summaryrefslogtreecommitdiffstats
path: root/gl/asnprintf.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2026-03-26 12:53:53 +0100
committerGitHub <noreply@github.com>2026-03-26 12:53:53 +0100
commit13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch)
tree3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/asnprintf.c
parent9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff)
downloadmonitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz
Update/gnulib 2026 03 (#2247)
* Sync with the 202601-stable Gnulib code (4a3650d887) * Ignore more deps stuff in gnulib * Remove autogenerated gnulib files * Ignore more gnulib generated headers
Diffstat (limited to 'gl/asnprintf.c')
-rw-r--r--gl/asnprintf.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gl/asnprintf.c b/gl/asnprintf.c
index 0488b6be..05582499 100644
--- a/gl/asnprintf.c
+++ b/gl/asnprintf.c
@@ -1,5 +1,5 @@
1/* Formatted output to strings. 1/* Formatted output to strings.
2 Copyright (C) 1999, 2002, 2006, 2009-2025 Free Software Foundation, Inc. 2 Copyright (C) 1999, 2002, 2006, 2009-2026 Free Software Foundation, Inc.
3 3
4 This file is free software: you can redistribute it and/or modify 4 This file is free software: you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as 5 it under the terms of the GNU Lesser General Public License as
@@ -25,10 +25,8 @@ char *
25asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) 25asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...)
26{ 26{
27 va_list args; 27 va_list args;
28 char *result;
29
30 va_start (args, format); 28 va_start (args, format);
31 result = vasnprintf (resultbuf, lengthp, format, args); 29 char *result = vasnprintf (resultbuf, lengthp, format, args);
32 va_end (args); 30 va_end (args);
33 return result; 31 return result;
34} 32}