@@ -63,7 +63,7 @@ static void nxt_proto_quit_children(nxt_task_t *task);
6363static nxt_process_t * nxt_proto_process_find (nxt_task_t * task , nxt_pid_t pid );
6464static void nxt_proto_process_add (nxt_task_t * task , nxt_process_t * process );
6565static nxt_process_t * nxt_proto_process_remove (nxt_task_t * task , nxt_pid_t pid );
66- static u_char * nxt_cstr_dup (nxt_mp_t * mp , u_char * dst , u_char * src );
66+ static char * nxt_cstr_dup (nxt_mp_t * mp , char * dst , char * src );
6767static void nxt_proto_signal_handler (nxt_task_t * task , void * obj , void * data );
6868static void nxt_proto_sigterm_handler (nxt_task_t * task , void * obj , void * data );
6969static void nxt_proto_sigchld_handler (nxt_task_t * task , void * obj , void * data );
@@ -207,7 +207,7 @@ static nxt_buf_t *
207207nxt_discovery_modules (nxt_task_t * task , const char * path )
208208{
209209 char * name ;
210- u_char * p , * end ;
210+ char * p , * end ;
211211 size_t size ;
212212 glob_t glb ;
213213 nxt_mp_t * mp ;
@@ -310,7 +310,7 @@ nxt_discovery_modules(nxt_task_t *task, const char *path)
310310 "\"data\": \"%s\"}," ,
311311 mnt [j ].src , mnt [j ].dst , mnt [j ].name , mnt [j ].type ,
312312 mnt [j ].flags ,
313- mnt [j ].data == NULL ? (u_char * ) "" : mnt [j ].data );
313+ mnt [j ].data == NULL ? (char * ) "" : mnt [j ].data );
314314 }
315315
316316 * p ++ = ']' ;
@@ -388,7 +388,7 @@ nxt_discovery_module(nxt_task_t *task, nxt_mp_t *mp, nxt_array_t *modules,
388388 module = modules -> elts ;
389389 n = modules -> nelts ;
390390
391- version .start = (u_char * ) app -> version ;
391+ version .start = (char * ) app -> version ;
392392 version .length = nxt_strlen (app -> version );
393393
394394 for (i = 0 ; i < n ; i ++ ) {
@@ -603,7 +603,7 @@ nxt_proto_start(nxt_task_t *task, nxt_process_data_t *data)
603603static void
604604nxt_proto_start_process_handler (nxt_task_t * task , nxt_port_recv_msg_t * msg )
605605{
606- u_char * p ;
606+ char * p ;
607607 nxt_int_t ret ;
608608 nxt_port_t * port ;
609609 nxt_runtime_t * rt ;
@@ -641,7 +641,7 @@ nxt_proto_start_process_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
641641
642642 init -> name = (const char * ) nxt_app_conf -> name .start ;
643643
644- p = (u_char * ) process -> name ;
644+ p = (char * ) process -> name ;
645645 * p ++ = '"' ;
646646 p = nxt_cpymem (p , nxt_app_conf -> name .start , nxt_app_conf -> name .length );
647647 p = nxt_cpymem (p , "\" application" , 13 );
@@ -968,7 +968,7 @@ nxt_app_set_logs(void)
968968 if (app_conf -> stdout_log != NULL ) {
969969 nxt_memzero (& file , sizeof (nxt_file_t ));
970970 file .log_level = 1 ;
971- file .name = (u_char * ) app_conf -> stdout_log ;
971+ file .name = (char * ) app_conf -> stdout_log ;
972972 ret = nxt_file_open (task , & file , O_WRONLY | O_APPEND , O_CREAT , 0666 );
973973 if (ret == NXT_ERROR ) {
974974 return NXT_ERROR ;
@@ -981,7 +981,7 @@ nxt_app_set_logs(void)
981981 if (app_conf -> stderr_log != NULL ) {
982982 nxt_memzero (& file , sizeof (nxt_file_t ));
983983 file .log_level = 1 ;
984- file .name = (u_char * ) app_conf -> stderr_log ;
984+ file .name = (char * ) app_conf -> stderr_log ;
985985 ret = nxt_file_open (task , & file , O_WRONLY | O_APPEND , O_CREAT , 0666 );
986986 if (ret == NXT_ERROR ) {
987987 return NXT_ERROR ;
@@ -995,10 +995,10 @@ nxt_app_set_logs(void)
995995}
996996
997997
998- static u_char *
999- nxt_cstr_dup (nxt_mp_t * mp , u_char * dst , u_char * src )
998+ static char *
999+ nxt_cstr_dup (nxt_mp_t * mp , char * dst , char * src )
10001000{
1001- u_char * p ;
1001+ char * p ;
10021002 size_t len ;
10031003
10041004 len = nxt_strlen (src );
@@ -1033,7 +1033,7 @@ nxt_app_setup(nxt_task_t *task, nxt_process_t *process)
10331033nxt_app_lang_module_t *
10341034nxt_app_lang_module (nxt_runtime_t * rt , nxt_str_t * name )
10351035{
1036- u_char * p , * end , * version ;
1036+ char * p , * end , * version ;
10371037 size_t version_length ;
10381038 nxt_uint_t i , n ;
10391039 nxt_app_type_t type ;
@@ -1084,7 +1084,7 @@ nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name)
10841084
10851085
10861086nxt_app_type_t
1087- nxt_app_parse_type (u_char * p , size_t length )
1087+ nxt_app_parse_type (char * p , size_t length )
10881088{
10891089 nxt_str_t str ;
10901090
@@ -1205,7 +1205,7 @@ nxt_proto_process_lhq_pid(nxt_lvlhsh_query_t *lhq, nxt_pid_t *pid)
12051205{
12061206 lhq -> key_hash = nxt_murmur_hash2 (pid , sizeof (nxt_pid_t ));
12071207 lhq -> key .length = sizeof (nxt_pid_t );
1208- lhq -> key .start = (u_char * ) pid ;
1208+ lhq -> key .start = (char * ) pid ;
12091209 lhq -> proto = & lvlhsh_processes_proto ;
12101210}
12111211
0 commit comments