Skip to content

Commit c331173

Browse files
committed
ext/standard/scanf: make ValidateFormat function private
1 parent 5c5e42b commit c331173

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

ext/standard/scanf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static void ReleaseCharSet(CharSet *cset)
304304
*
305305
*----------------------------------------------------------------------
306306
*/
307-
PHPAPI int ValidateFormat(char *format, int numVars, int *totalSubs)
307+
static int ValidateFormat(char *format, int numVars, int *totalSubs)
308308
{
309309
#define STATIC_LIST_SIZE 16
310310
int gotXpg, gotSequential, value, i, flags;

ext/standard/scanf.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
* The following are here solely for the benefit of the scanf type functions
3434
* e.g. fscanf
3535
*/
36-
PHPAPI int ValidateFormat(char *format, int numVars, int *totalVars);
3736
PHPAPI int php_sscanf_internal(char *string,char *format,uint32_t argCount,zval *args,
3837
int varStart, zval *return_value);
3938

0 commit comments

Comments
 (0)