summaryrefslogtreecommitdiffstats
path: root/gl/asnprintf.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2026-03-27 11:14:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2026-03-27 11:14:20 +0100
commit1113bbcd92d85b85579aa7feef511241e58fb0f5 (patch)
treed69b7bcfe2f7e80fda9a1f4ddd38209d6cb7aaf0 /gl/asnprintf.c
parent99283972fe3a74d3a1dea12c4099f76286130a67 (diff)
parenta71ce153082565e5728424749475593dc0623492 (diff)
downloadmonitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz
merged with mastercheck_snmp_fixes
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}