diff options
| author | Christian Göttsche | 2024-06-06 16:36:40 +0200 |
|---|---|---|
| committer | jvoisin | 2024-06-06 16:36:40 +0200 |
| commit | 849252c6a48b428dde3ad8930b40a2bdf9874cb7 (patch) | |
| tree | 0fdc4d1e65c0f4fb4f670b95390c41be808b1ad1 /src/sp_config_scanner.h | |
| parent | 381aa67af284e421ce6554e7bf6039dda5e674b9 (diff) | |
Add format attribute to log function and adjust format specifiers
Annotate the common logging function sp_log_msgf() with the format
attribute so compilers can check the used format string and passed
arguments for discrepancies.
Adjust the lineno printing by using %zu and the type size_t
consistently.
Diffstat (limited to 'src/sp_config_scanner.h')
| -rw-r--r-- | src/sp_config_scanner.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_config_scanner.h b/src/sp_config_scanner.h index 560ea6e..dda3dc2 100644 --- a/src/sp_config_scanner.h +++ b/src/sp_config_scanner.h | |||
| @@ -15,7 +15,7 @@ typedef struct { | |||
| 15 | const char *arg; // optional argument / can be not null terminated | 15 | const char *arg; // optional argument / can be not null terminated |
| 16 | size_t arglen; | 16 | size_t arglen; |
| 17 | sp_argtype argtype; | 17 | sp_argtype argtype; |
| 18 | long lineno; | 18 | size_t lineno; |
| 19 | } sp_parsed_keyword; | 19 | } sp_parsed_keyword; |
| 20 | 20 | ||
| 21 | zend_result sp_config_scan(const char *data, zend_result (*process_rule)(sp_parsed_keyword*)); | 21 | zend_result sp_config_scan(const char *data, zend_result (*process_rule)(sp_parsed_keyword*)); |
