Skip to content

Commit d2f1f48

Browse files
committed
change return value bool to int for compatibility
1 parent fdecf70 commit d2f1f48

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dcode.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,8 @@ static char* dcode_write_to_png(QRcode *qrcode, int size, int margin, int *pp_le
379379

380380
/** {{{ dcode_qrcode_error(QRcode * TSRMLS_DC)
381381
* process qrcode result
382-
* Return TRUE or FALSE */
383-
static bool dcode_qrcode_error(QRcode *qcode TSRMLS_DC) {
382+
* Return TRUE (1) or FALSE (0) */
383+
static int dcode_qrcode_error(QRcode *qcode TSRMLS_DC) {
384384
if (qcode == NULL)
385385
{
386386
if (errno == EINVAL) {

dcode.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static char* dcode_microtime(char *);
3737
static long dcode_time();
3838
static void dcode_png_writer(png_structp, png_bytep, png_size_t);
3939
static char* dcode_write_to_png(QRcode *, int, int, int *);
40-
static bool dcode_qrcode_error(QRcode * TSRMLS_DC);
40+
static int dcode_qrcode_error(QRcode * TSRMLS_DC);
4141
#endif
4242
/*
4343
* Local variables:

0 commit comments

Comments
 (0)