Skip to content

Commit e392d79

Browse files
committed
Mark array as const per review
1 parent b64bb5b commit e392d79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/filter/logical_filters.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ static int _php_filter_validate_ipv6(const char *str, size_t str_len, int ip[8])
871871

872872
/* From the tables in RFC 6890 - Special-Purpose IP Address Registriesi
873873
* Including errata: https://www.rfc-editor.org/errata_search.php?rfc=6890&rec_status=1 */
874-
static bool ipv4_get_status_flags(int ip[8], bool *global, bool *reserved, bool *private)
874+
static bool ipv4_get_status_flags(const int ip[8], bool *global, bool *reserved, bool *private)
875875
{
876876
*global = false;
877877
*reserved = false;
@@ -928,7 +928,7 @@ static bool ipv4_get_status_flags(int ip[8], bool *global, bool *reserved, bool
928928
}
929929

930930
/* From the tables in RFC 6890 - Special-Purpose IP Address Registries */
931-
static bool ipv6_get_status_flags(int ip[8], bool *global, bool *reserved, bool *private)
931+
static bool ipv6_get_status_flags(const int ip[8], bool *global, bool *reserved, bool *private)
932932
{
933933
*global = false;
934934
*reserved = false;

0 commit comments

Comments
 (0)