mirror of
https://github.com/fumiama/simple-kanban.git
synced 2026-06-28 15:10:27 +08:00
以rb打开cfg
This commit is contained in:
2
server.c
2
server.c
@@ -483,7 +483,7 @@ int main(int argc, char *argv[]) {
|
|||||||
data_path = argv[as_daemon?5:4];
|
data_path = argv[as_daemon?5:4];
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
fp = NULL;
|
fp = NULL;
|
||||||
fp = fopen(argv[as_daemon?6:5], "rb+");
|
fp = fopen(argv[as_daemon?6:5], "rb");
|
||||||
if(fp) {
|
if(fp) {
|
||||||
SIMPLE_PB* spb = get_pb(fp);
|
SIMPLE_PB* spb = get_pb(fp);
|
||||||
cfg = (CONFIG*)spb->target;
|
cfg = (CONFIG*)spb->target;
|
||||||
|
|||||||
Reference in New Issue
Block a user