@@ -62,7 +62,7 @@ static void nxt_proto_quit_children(nxt_task_t *task);
6262static nxt_process_t * nxt_proto_process_find (nxt_task_t * task , nxt_pid_t pid );
6363static void nxt_proto_process_add (nxt_task_t * task , nxt_process_t * process );
6464static nxt_process_t * nxt_proto_process_remove (nxt_task_t * task , nxt_pid_t pid );
65- static u_char * nxt_cstr_dup (nxt_mp_t * mp , u_char * dst , u_char * src );
65+ static char * nxt_cstr_dup (nxt_mp_t * mp , char * dst , char * src );
6666static void nxt_proto_signal_handler (nxt_task_t * task , void * obj , void * data );
6767static void nxt_proto_sigterm_handler (nxt_task_t * task , void * obj , void * data );
6868static void nxt_proto_sigchld_handler (nxt_task_t * task , void * obj , void * data );
@@ -206,7 +206,7 @@ static nxt_buf_t *
206206nxt_discovery_modules (nxt_task_t * task , const char * path )
207207{
208208 char * name ;
209- u_char * p , * end ;
209+ char * p , * end ;
210210 size_t size ;
211211 glob_t glb ;
212212 nxt_mp_t * mp ;
@@ -306,7 +306,7 @@ nxt_discovery_modules(nxt_task_t *task, const char *path)
306306 "\"data\": \"%s\"}," ,
307307 mnt [j ].src , mnt [j ].dst , mnt [j ].name , mnt [j ].type ,
308308 mnt [j ].flags ,
309- mnt [j ].data == NULL ? (u_char * ) "" : mnt [j ].data );
309+ mnt [j ].data == NULL ? (char * ) "" : mnt [j ].data );
310310 }
311311
312312 * p ++ = ']' ;
@@ -384,7 +384,7 @@ nxt_discovery_module(nxt_task_t *task, nxt_mp_t *mp, nxt_array_t *modules,
384384 module = modules -> elts ;
385385 n = modules -> nelts ;
386386
387- version .start = (u_char * ) app -> version ;
387+ version .start = (char * ) app -> version ;
388388 version .length = nxt_strlen (app -> version );
389389
390390 for (i = 0 ; i < n ; i ++ ) {
@@ -594,7 +594,7 @@ nxt_proto_start(nxt_task_t *task, nxt_process_data_t *data)
594594static void
595595nxt_proto_start_process_handler (nxt_task_t * task , nxt_port_recv_msg_t * msg )
596596{
597- u_char * p ;
597+ char * p ;
598598 nxt_int_t ret ;
599599 nxt_port_t * port ;
600600 nxt_runtime_t * rt ;
@@ -632,7 +632,7 @@ nxt_proto_start_process_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg)
632632
633633 init -> name = (const char * ) nxt_app_conf -> name .start ;
634634
635- p = (u_char * ) process -> name ;
635+ p = (char * ) process -> name ;
636636 * p ++ = '"' ;
637637 p = nxt_cpymem (p , nxt_app_conf -> name .start , nxt_app_conf -> name .length );
638638 p = nxt_cpymem (p , "\" application" , 13 );
@@ -959,7 +959,7 @@ nxt_app_set_logs(void)
959959 if (app_conf -> stdout_log != NULL ) {
960960 nxt_memzero (& file , sizeof (nxt_file_t ));
961961 file .log_level = 1 ;
962- file .name = (u_char * ) app_conf -> stdout_log ;
962+ file .name = (char * ) app_conf -> stdout_log ;
963963 ret = nxt_file_open (task , & file , O_WRONLY | O_APPEND , O_CREAT , 0666 );
964964 if (ret == NXT_ERROR ) {
965965 return NXT_ERROR ;
@@ -972,7 +972,7 @@ nxt_app_set_logs(void)
972972 if (app_conf -> stderr_log != NULL ) {
973973 nxt_memzero (& file , sizeof (nxt_file_t ));
974974 file .log_level = 1 ;
975- file .name = (u_char * ) app_conf -> stderr_log ;
975+ file .name = (char * ) app_conf -> stderr_log ;
976976 ret = nxt_file_open (task , & file , O_WRONLY | O_APPEND , O_CREAT , 0666 );
977977 if (ret == NXT_ERROR ) {
978978 return NXT_ERROR ;
@@ -986,10 +986,10 @@ nxt_app_set_logs(void)
986986}
987987
988988
989- static u_char *
990- nxt_cstr_dup (nxt_mp_t * mp , u_char * dst , u_char * src )
989+ static char *
990+ nxt_cstr_dup (nxt_mp_t * mp , char * dst , char * src )
991991{
992- u_char * p ;
992+ char * p ;
993993 size_t len ;
994994
995995 len = nxt_strlen (src );
@@ -1024,7 +1024,7 @@ nxt_app_setup(nxt_task_t *task, nxt_process_t *process)
10241024nxt_app_lang_module_t *
10251025nxt_app_lang_module (nxt_runtime_t * rt , nxt_str_t * name )
10261026{
1027- u_char * p , * end , * version ;
1027+ char * p , * end , * version ;
10281028 size_t version_length ;
10291029 nxt_uint_t i , n ;
10301030 nxt_app_type_t type ;
@@ -1075,7 +1075,7 @@ nxt_app_lang_module(nxt_runtime_t *rt, nxt_str_t *name)
10751075
10761076
10771077nxt_app_type_t
1078- nxt_app_parse_type (u_char * p , size_t length )
1078+ nxt_app_parse_type (char * p , size_t length )
10791079{
10801080 nxt_str_t str ;
10811081
@@ -1196,7 +1196,7 @@ nxt_proto_process_lhq_pid(nxt_lvlhsh_query_t *lhq, nxt_pid_t *pid)
11961196{
11971197 lhq -> key_hash = nxt_murmur_hash2 (pid , sizeof (nxt_pid_t ));
11981198 lhq -> key .length = sizeof (nxt_pid_t );
1199- lhq -> key .start = (u_char * ) pid ;
1199+ lhq -> key .start = (char * ) pid ;
12001200 lhq -> proto = & lvlhsh_processes_proto ;
12011201}
12021202
0 commit comments