Skip to content

Commit d13ef59

Browse files
committed
ext/session: Minor code cleanups
1 parent c4a7ea1 commit d13ef59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/session/session.c

Lines changed: 2 additions & 2 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;

0 commit comments

Comments
 (0)