Skip to content

Commit 6d993db

Browse files
authored
Merge pull request #102 from sunpoet/master
Fix build error and warning on i386
2 parents d3c94e3 + 9ff3c98 commit 6d993db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

smb_streams.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ static int php_smb_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_D
270270
return 0;
271271
}
272272

273-
static int php_smb_ops_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC)
273+
static int php_smb_ops_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC)
274274
{
275275
STREAM_DATA_FROM_STREAM();
276276

smbclient.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@ PHP_FUNCTION(smbclient_read)
12021202
return;
12031203
}
12041204
if (count < 0) {
1205-
php_error(E_WARNING, "Negative byte count: %ld", count);
1205+
php_error(E_WARNING, "Negative byte count: " ZEND_LONG_FMT, count);
12061206
RETURN_FALSE;
12071207
}
12081208
STATE_FROM_ZSTATE;
@@ -1253,7 +1253,7 @@ PHP_FUNCTION(smbclient_write)
12531253
return;
12541254
}
12551255
if (count < 0) {
1256-
php_error(E_WARNING, "Negative byte count: %ld", count);
1256+
php_error(E_WARNING, "Negative byte count: " ZEND_LONG_FMT, count);
12571257
RETURN_FALSE;
12581258
}
12591259
if (count == 0 || count > str_len) {

0 commit comments

Comments
 (0)