summaryrefslogtreecommitdiffstats
path: root/gl/stdio-write.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/stdio-write.c
parent99283972fe3a74d3a1dea12c4099f76286130a67 (diff)
parenta71ce153082565e5728424749475593dc0623492 (diff)
downloadmonitoring-plugins-1113bbcd92d85b85579aa7feef511241e58fb0f5.tar.gz
merged with mastercheck_snmp_fixes
Diffstat (limited to 'gl/stdio-write.c')
-rw-r--r--gl/stdio-write.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gl/stdio-write.c b/gl/stdio-write.c
index 59ba8fc4..fc7f74fe 100644
--- a/gl/stdio-write.c
+++ b/gl/stdio-write.c
@@ -1,5 +1,5 @@
1/* POSIX compatible FILE stream write function. 1/* POSIX compatible FILE stream write function.
2 Copyright (C) 2008-2025 Free Software Foundation, Inc. 2 Copyright (C) 2008-2026 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2008. 3 Written by Bruno Haible <bruno@clisp.org>, 2008.
4 4
5 This file is free software: you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
@@ -107,10 +107,9 @@
107 return (EXPRESSION); \ 107 return (EXPRESSION); \
108 else \ 108 else \
109 { \ 109 { \
110 RETTYPE ret; \
111 CLEAR_ERRNO \ 110 CLEAR_ERRNO \
112 CLEAR_LastError \ 111 CLEAR_LastError \
113 ret = (EXPRESSION); \ 112 RETTYPE ret = (EXPRESSION); \
114 if (FAILED) \ 113 if (FAILED) \
115 { \ 114 { \
116 HANDLE_ENOSPC \ 115 HANDLE_ENOSPC \
@@ -124,11 +123,9 @@
124int 123int
125printf (const char *format, ...) 124printf (const char *format, ...)
126{ 125{
127 int retval;
128 va_list args; 126 va_list args;
129
130 va_start (args, format); 127 va_start (args, format);
131 retval = vfprintf (stdout, format, args); 128 int retval = vfprintf (stdout, format, args);
132 va_end (args); 129 va_end (args);
133 130
134 return retval; 131 return retval;
@@ -139,11 +136,9 @@ printf (const char *format, ...)
139int 136int
140fprintf (FILE *stream, const char *format, ...) 137fprintf (FILE *stream, const char *format, ...)
141{ 138{
142 int retval;
143 va_list args; 139 va_list args;
144
145 va_start (args, format); 140 va_start (args, format);
146 retval = vfprintf (stream, format, args); 141 int retval = vfprintf (stream, format, args);
147 va_end (args); 142 va_end (args);
148 143
149 return retval; 144 return retval;