diff options
| author | Alvar Penning <post@0x21.biz> | 2025-12-11 10:53:07 +0100 |
|---|---|---|
| committer | Alvar Penning <post@0x21.biz> | 2025-12-11 21:05:49 +0100 |
| commit | 6ce11bc44f5fe2344083a94175a1667ca02e016c (patch) | |
| tree | 15af65d7c9023b1cded0ca0976915d3130d5e519 /lib/utils_cmd.h | |
| parent | b27bf07ebf518a719482c5c40372549f5a9a127a (diff) | |
| download | monitoring-plugins-6ce11bc44f5fe2344083a94175a1667ca02e016c.tar.gz | |
lib/utils_cmd: Rename stdout, stderr in cmd_run_result
On OpenBSD's "stdio.h", stdin, stdout, and stderr are not directly
FILE*, but #defines. Thus, naming the output struct fields stdout and
stderr resulted in compiler errors, after replacing the #define.
https://codeberg.org/OpenBSD/src/src/commit/a762189c5efbb2811f3c853bc0e5578fd5fb919d/include/stdio.h#L75-L77
Diffstat (limited to 'lib/utils_cmd.h')
| -rw-r--r-- | lib/utils_cmd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils_cmd.h b/lib/utils_cmd.h index d3a8f14f..04a624b8 100644 --- a/lib/utils_cmd.h +++ b/lib/utils_cmd.h | |||
| @@ -24,8 +24,8 @@ int cmd_file_read(const char *, output *, int); | |||
| 24 | typedef struct { | 24 | typedef struct { |
| 25 | int error_code; | 25 | int error_code; |
| 26 | int cmd_error_code; | 26 | int cmd_error_code; |
| 27 | output stdout; | 27 | output out; |
| 28 | output stderr; | 28 | output err; |
| 29 | } cmd_run_result; | 29 | } cmd_run_result; |
| 30 | cmd_run_result cmd_run2(const char *cmd, int flags); | 30 | cmd_run_result cmd_run2(const char *cmd, int flags); |
| 31 | cmd_run_result cmd_run_array2(char * const *cmd, int flags); | 31 | cmd_run_result cmd_run_array2(char * const *cmd, int flags); |
