g++ -O3 -DSUPPORT_MOD_VOC daemon.cpp -o daemon
daemon.cpp: In function ‘int recv_fd(int, char*)’:
daemon.cpp:331: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:333: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In member function ‘int Client::form_message(Message&, char*, User*&, User*&)’:
daemon.cpp:1120: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1122: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1124: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1126: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1127: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1129: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1130: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1137: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1139: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1139: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1188: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In member function ‘int Client:
rocess_messages(Message*, int&, int&, User*&, User*&, Room*&, Room*&)’:
daemon.cpp:1296: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In member function ‘int Client::show_header(Message*, int&, DesignHeader*&, DesignHeader*&, char*, User*&, User*&, char*)’:
daemon.cpp:1314: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1319: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1320: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1320: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1321: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1322: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1365: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1370: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1371: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1371: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1372: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1373: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1347: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
daemon.cpp: In member function ‘int Client::recv(User*&, User*&, Message*, int&, DesignHeader*&, DesignHeader*&, Room*&, Room*&, int)’:
daemon.cpp:1525: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:1530: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In function ‘int parse_user_string(char*, User*&, Client*&, Client*&, char*)’:
daemon.cpp:2008: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2020: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In function ‘int files_get_users_list(User*&, User*&, Client*&, Client*&)’:
daemon.cpp:2128: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2186: warning: ignoring return value of ‘int ftruncate(int, __off_t)’, declared with attribute warn_unused_result
daemon.cpp: In function ‘int shm_get_users_list(User*&, User*&, Client*&, Client*&)’:
daemon.cpp:2325: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2387: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In function ‘void look_for_parameter(char*, char*, char*, int)’:
daemon.cpp:2495: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2495: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In function ‘void initialize_parameters()’:
daemon.cpp:2554: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2559: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2560: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2561: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2562: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2563: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2564: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2565: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2566: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2567: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2568: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2569: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2570: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2571: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2572: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2573: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2574: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2575: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2576: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2577: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2585: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2586: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2587: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2588: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2591: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2592: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2594: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2667: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2668: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2669: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2670: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2673: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2674: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2675: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2676: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2677: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2678: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2679: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2680: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2558: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
daemon.cpp:2666: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
daemon.cpp: In function ‘void sigger(int)’:
daemon.cpp:2756: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In function ‘void daemonize()’:
daemon.cpp:2784: warning: ignoring return value of ‘int dup(int)’, declared with attribute warn_unused_result
daemon.cpp:2784: warning: ignoring return value of ‘int dup(int)’, declared with attribute warn_unused_result
daemon.cpp: In function ‘int main(int, char**)’:
daemon.cpp:2931: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2935: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:2948: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
daemon.cpp:2948: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
daemon.cpp:2955: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
daemon.cpp:2955: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘long int’
daemon.cpp:2960: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
daemon.cpp:2960: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
daemon.cpp:2963: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
daemon.cpp:2963: warning: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long int’
daemon.cpp:3003: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3008: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3016: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3021: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3032: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3038: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3045: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3129: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3151: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3153: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3157: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3167: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3177: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3222: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp:3232: warning: deprecated conversion from string constant to ‘char*’
daemon.cpp: In function ‘int php_sysvsem_semop(int, int)’:
daemon.cpp:3343: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp:3343: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp: In function ‘int php_unlock_sem(int)’:
daemon.cpp:3424: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp:3424: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp:3429: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp:3429: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp:3430: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
daemon.cpp:3430: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
1
[/spoil]
запускаю daemon и тут вроде все норм
[spoil]----------------------------------------------------
VOC++ daemon: VOC++ 0.9 rev 1.6.4 Business Special Edition / HighSpeed Edition (1.0 RC1 original)
Available parameters: daemon [data-dir] [--console]
Recognized 0 parameters.
Recognizing: console mode is OFF, data_path = ../
Initalizing engine ...
OK
Locale: [C]