summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README5
-rw-r--r--src/main.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/README b/README
index 055745d..52746da 100644
--- a/README
+++ b/README
@@ -19,8 +19,9 @@
This is a app to run a snack machine as taler merchant with nfc payment interface.
#### Tasks
- * Add libjansson to parse and create json objects
- * Build system, makefile provided is not suitable
+ * fix bug when order pending -> press cancel -> abort from gunent scheduler
+ Nov 12 18:47:04-224202 util-scheduler-4656 ERROR `select' failed at scheduler.c:2336 with error: Bad file descriptor
+ Nov 12 18:47:04-224321 taler-mdb-4656 ERROR Assertion failed at scheduler.c:2370. Aborting.
#### Remarks
* When using an ACR122 device there may be problems with libnfc, see libnfc for further information
diff --git a/src/main.c b/src/main.c
index 1353a64..5e727e1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -215,7 +215,7 @@ show_qrcode (const char *uri)
{
unsigned int off =
(x * qrc->width / size) + (y * qrc->width / size) * qrc->width;
- for (int c = 0; c < n_channels; c++)
+ for (unsigned int c = 0; c < n_channels; c++)
pixels[(y * size + x) * n_channels + c] =
(0 == (qrc->data[off] & 1)) ? 0xFF : 0;
}