summaryrefslogtreecommitdiffstats
path: root/gl/printf-args.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-08-23 19:42:51 +0200
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-09-14 11:08:55 +0200
commit868beb15ae02c352005a2df8857f4ebb9bd758fd (patch)
tree0dc6e6a91c4ef0f131ca82a777e6ac2ad193c399 /gl/printf-args.c
parentb89aee56964f7d933f2da5f371e32b4d7db9410b (diff)
downloadmonitoring-plugins-868beb15ae02c352005a2df8857f4ebb9bd758fd.tar.gz
Sync with the latest Gnulib code (d27c820595)
Diffstat (limited to 'gl/printf-args.c')
-rw-r--r--gl/printf-args.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/gl/printf-args.c b/gl/printf-args.c
index c27e6bc6..669c24a4 100644
--- a/gl/printf-args.c
+++ b/gl/printf-args.c
@@ -1,19 +1,19 @@
1/* Decomposed printf argument list. 1/* Decomposed printf argument list.
2 Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2013 Free Software 2 Copyright (C) 1999, 2002-2003, 2005-2007, 2009-2022 Free Software
3 Foundation, Inc. 3 Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This file is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU Lesser General Public License as
7 the Free Software Foundation; either version 3, or (at your option) 7 published by the Free Software Foundation; either version 2.1 of the
8 any later version. 8 License, or (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This file is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU Lesser General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License along 15 You should have received a copy of the GNU Lesser General Public License
16 with this program; if not, see <http://www.gnu.org/licenses/>. */ 16 along with this program. If not, see <https://www.gnu.org/licenses/>. */
17 17
18/* This file can be parametrized with the following macros: 18/* This file can be parametrized with the following macros:
19 ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. 19 ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions.
@@ -65,14 +65,12 @@ PRINTF_FETCHARGS (va_list args, arguments *a)
65 case TYPE_ULONGINT: 65 case TYPE_ULONGINT:
66 ap->a.a_ulongint = va_arg (args, unsigned long int); 66 ap->a.a_ulongint = va_arg (args, unsigned long int);
67 break; 67 break;
68#if HAVE_LONG_LONG_INT
69 case TYPE_LONGLONGINT: 68 case TYPE_LONGLONGINT:
70 ap->a.a_longlongint = va_arg (args, long long int); 69 ap->a.a_longlongint = va_arg (args, long long int);
71 break; 70 break;
72 case TYPE_ULONGLONGINT: 71 case TYPE_ULONGLONGINT:
73 ap->a.a_ulonglongint = va_arg (args, unsigned long long int); 72 ap->a.a_ulonglongint = va_arg (args, unsigned long long int);
74 break; 73 break;
75#endif
76 case TYPE_DOUBLE: 74 case TYPE_DOUBLE:
77 ap->a.a_double = va_arg (args, double); 75 ap->a.a_double = va_arg (args, double);
78 break; 76 break;
@@ -135,11 +133,9 @@ PRINTF_FETCHARGS (va_list args, arguments *a)
135 case TYPE_COUNT_LONGINT_POINTER: 133 case TYPE_COUNT_LONGINT_POINTER:
136 ap->a.a_count_longint_pointer = va_arg (args, long int *); 134 ap->a.a_count_longint_pointer = va_arg (args, long int *);
137 break; 135 break;
138#if HAVE_LONG_LONG_INT
139 case TYPE_COUNT_LONGLONGINT_POINTER: 136 case TYPE_COUNT_LONGLONGINT_POINTER:
140 ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); 137 ap->a.a_count_longlongint_pointer = va_arg (args, long long int *);
141 break; 138 break;
142#endif
143#if ENABLE_UNISTDIO 139#if ENABLE_UNISTDIO
144 /* The unistdio extensions. */ 140 /* The unistdio extensions. */
145 case TYPE_U8_STRING: 141 case TYPE_U8_STRING: