From: Rafał Długołęcki Date: Fri, 12 Jul 2013 07:59:47 +0000 (+0200) Subject: Fixed compile errors in kernel. X-Git-Tag: 3.1~55 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=ef5e07409809a12492b3b9c092560d97de4487e2;p=vlp.git Fixed compile errors in kernel. --- 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(); }