Skip to content

Commit 67a2109

Browse files
committed
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
1 parent 992e2b0 commit 67a2109

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ibase_service.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ PHP_FUNCTION(ibase_service_attach)
226226
user, isc_spb_password, (char)plen, pass, host);
227227

228228
if (spb_len > sizeof(buf) || spb_len == -1) {
229-
_php_ibase_module_error("Internal error: insufficient buffer space for SPB (%d)", spb_len);
229+
_php_ibase_module_error("Internal error: insufficient buffer space for SPB (%zd)", spb_len);
230230
RETURN_FALSE;
231231
}
232232

@@ -450,7 +450,7 @@ static void _php_ibase_backup_restore(INTERNAL_FUNCTION_PARAMETERS, char operati
450450
}
451451

452452
if (spb_len > sizeof(buf) || spb_len <= 0) {
453-
_php_ibase_module_error("Internal error: insufficient buffer space for SPB (%d)", spb_len);
453+
_php_ibase_module_error("Internal error: insufficient buffer space for SPB (%zd)", spb_len);
454454
RETURN_FALSE;
455455
}
456456

php_ibase_includes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ typedef void (*info_func_t)(char*);
151151

152152
void _php_ibase_error(void);
153153
void _php_ibase_module_error(char *, ...)
154-
PHP_ATTRIBUTE_FORMAT(printf,1,PHP_ATTR_FMT_OFFSET +2);
154+
PHP_ATTRIBUTE_FORMAT(printf,1,2);
155155

156156
/* determine if a resource is a link or transaction handle */
157157
#define PHP_IBASE_LINK_TRANS(zv, lh, th) \

0 commit comments

Comments
 (0)