From ef5e07409809a12492b3b9c092560d97de4487e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Fri, 12 Jul 2013 09:59:47 +0200 Subject: [PATCH] Fixed compile errors in kernel. --- src/kernel/kernel.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index f41c0a8..086ed63 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -190,8 +190,8 @@ private: bool synchro; bool wait_for_info; char LockPasswd[25]; - int lockid - int unlockid + int lockid; + int unlockid; int qid; int cwid; int optid; @@ -371,14 +371,15 @@ void QKernel::LoadConfig(char * fname) ConnectList.append(new ConnectEntry((char*) config_setting_get_string(setting))); break; - case CONFIG_TYPE_ARRAY: - int length = config_setting_length(setting); - for (int i = 0; i < length; i++) { + case CONFIG_TYPE_ARRAY: { + int size = config_setting_length(setting); + for (int i = 0; i < size; i++) { ConnectList.append(new ConnectEntry((char*) config_setting_get_string_elem(setting, i))); } break; + } default: fprintf(stderr, "%s! In file %s, bad entry type for %s." " Will not be read.\n", @@ -1405,7 +1406,7 @@ int main(int argc, char **argv) app->setStyle(new QWindowsStyle()); QKernel kernel; app->setMainWidget(&kernel); - draw.show(); - draw.InitMessage(); + kernel.show(); + kernel.InitMessage(); return app->exec(); } -- 2.30.2