dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
vlp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a4dc0a8
)
Patched original code so it will compile on new g++
author
Rafał Długołęcki
<kontakt@dlugolecki.net.pl>
Mon, 1 Jul 2013 22:37:57 +0000
(
00:37
+0200)
committer
Rafał Długołęcki
<kontakt@dlugolecki.net.pl>
Mon, 1 Jul 2013 22:37:57 +0000
(
00:37
+0200)
kernel/kernel.cpp
patch
|
blob
|
history
diff --git
a/kernel/kernel.cpp
b/kernel/kernel.cpp
index 08ee51b75331fd786bb83fb379f7d1b021883a71..7ca1ec2de9a4a0d652cf3e81891d554c954b6119 100644
(file)
--- a/
kernel/kernel.cpp
+++ b/
kernel/kernel.cpp
@@
-932,7
+932,7
@@
void QKernel::SetOptions()
unlink("vlp.cfg");
vlp_file = new QFile("vlp.cfg");
vlp_file->open(IO_WriteOnly);
unlink("vlp.cfg");
vlp_file = new QFile("vlp.cfg");
vlp_file->open(IO_WriteOnly);
- sprintf(line,"progdir=%s\n",progs->text());
+ sprintf(line,"progdir=%s\n",progs->text()
.ascii()
);
vlp_file->writeBlock(line,strlen(line));
strcpy(progdir,progs->text());
sprintf(line,"node_number=%d\n",atoi(nn->text()));
vlp_file->writeBlock(line,strlen(line));
strcpy(progdir,progs->text());
sprintf(line,"node_number=%d\n",atoi(nn->text()));
@@
-943,7
+943,7
@@
void QKernel::SetOptions()
vlp_file->writeBlock(line,strlen(line));
for(i=0;i<connections->count();i++)
{
vlp_file->writeBlock(line,strlen(line));
for(i=0;i<connections->count();i++)
{
- sprintf(line,"host=%s\n",connections->text(i));
+ sprintf(line,"host=%s\n",connections->text(i)
.ascii()
);
vlp_file->writeBlock(line,strlen(line));
}
vlp_file->writeBlock(line,strlen(line));
}