Skip to content

Commit c3dac0f

Browse files
committed
ext/session: Minor code cleanups
1 parent db01dbc commit c3dac0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/session/session.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ static const ps_module *ps_modules[MAX_MODULES + 1] = {
11621162

11631163
PHPAPI zend_result php_session_register_module(const ps_module *ptr)
11641164
{
1165-
int ret = FAILURE;
1165+
zend_result ret = FAILURE;
11661166

11671167
for (int i = 0; i < MAX_MODULES; i++) {
11681168
if (!ps_modules[i]) {
@@ -1211,7 +1211,7 @@ static const char *week_days[] = {
12111211
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
12121212
};
12131213

1214-
static inline void strcpy_gmt(char *ubuf, time_t *when)
1214+
static inline void strcpy_gmt(char *ubuf, const time_t *when)
12151215
{
12161216
char buf[MAX_STR];
12171217
struct tm tm, *res;
@@ -3056,7 +3056,7 @@ static bool php_check_cancel_upload(php_session_rfc1867_progress *progress)
30563056
return Z_TYPE_P(cancel_upload) == IS_TRUE;
30573057
}
30583058

3059-
static void php_session_rfc1867_update(php_session_rfc1867_progress *progress, int force_update)
3059+
static void php_session_rfc1867_update(php_session_rfc1867_progress *progress, bool force_update)
30603060
{
30613061
if (!force_update) {
30623062
if (Z_LVAL_P(progress->post_bytes_processed) < progress->next_update) {

0 commit comments

Comments
 (0)