summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/fontConfig.c2
-rw-r--r--src/widget/widget_textfield.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/client/fontConfig.c b/src/client/fontConfig.c
index fcf77e2..6033287 100644
--- a/src/client/fontConfig.c
+++ b/src/client/fontConfig.c
@@ -113,6 +113,7 @@ int fontconfig_quit()
return 0;
}
+#ifdef TEST_FONT_CONFIG
int fc_test_main(int argc, char **argv)
{
char *arg[] = {":lang=he:outline=true", "family", "style", "weight", "file", NULL};
@@ -134,3 +135,4 @@ int fc_test_main(int argc, char **argv)
return 0;
}
+#endif
diff --git a/src/widget/widget_textfield.c b/src/widget/widget_textfield.c
index 3706c97..a634af1 100644
--- a/src/widget/widget_textfield.c
+++ b/src/widget/widget_textfield.c
@@ -116,7 +116,7 @@ char *text_field_get_text(widget_t *widget)
static void checkText(widget_textfield_t *p, unsigned len)
{
- int i;
+ unsigned int i;
for (i = 0; i < len; i++) {
char c;
@@ -231,7 +231,7 @@ static void readKey (widget_textfield_t *p)
p->text[len] = c;
if (k.mod & KMOD_SHIFT) {
- int n;
+ unsigned int n;
int m = 0;
for (n = 0; n < sizeof (shift_map); n += 2) {