diff options
author | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-21 17:54:13 +0100 |
---|---|---|
committer | Timo Dritschler <timo.dritschler@kit.edu> | 2014-11-21 17:54:13 +0100 |
commit | 5235e634860744f0b1251b0e50e89446f93381c2 (patch) | |
tree | b2ead7723f9d7fe30ca5fc000b7f37dd150d0561 /test/test-server.c | |
parent | f98bd3a5d58c59d950aa7318e9b708c42d51687f (diff) | |
download | kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.gz kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.bz2 kiro-5235e634860744f0b1251b0e50e89446f93381c2.tar.xz kiro-5235e634860744f0b1251b0e50e89446f93381c2.zip |
Fix #1: Added missing documentation to TRB, Client and Server header
Fixed build warnings
Fixed a bug in kiro-test-bandwidth
Diffstat (limited to 'test/test-server.c')
-rw-r--r-- | test/test-server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-server.c b/test/test-server.c index dc277d5..91a3db5 100644 --- a/test/test-server.c +++ b/test/test-server.c @@ -99,8 +99,8 @@ static const guint DIGIT_HEIGHT = 5; static void print_number (gchar *buffer, guint number, guint x, guint y, guint width) { - for (int i = 0; i < DIGIT_WIDTH; i++) { - for (int j = 0; j < DIGIT_HEIGHT; j++) { + for (guint i = 0; i < DIGIT_WIDTH; i++) { + for (guint j = 0; j < DIGIT_HEIGHT; j++) { char val = (char) g_digits[number][j * DIGIT_WIDTH + i]; if (val != 0x00) { @@ -131,7 +131,7 @@ print_current_frame (gchar *buffer, guint number, guint width, guint height, GRa //for every row again. char default_line[width]; - for (int p = 0; p < width; p++) { + for (guint p = 0; p < width; p++) { default_line[p] = (char) ((p * 256) / (width)); } |