nxt_service.c (65:10688b89aa16) nxt_service.c (564:762f8c976ead)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 93 unchanged lines hidden (view full) ---

102 if (nxt_strcmp(s->type, service->type) != 0) {
103 goto next;
104 }
105
106 if (nxt_strcmp(s->name, service->name) != 0) {
107 goto next;
108 }
109
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 93 unchanged lines hidden (view full) ---

102 if (nxt_strcmp(s->type, service->type) != 0) {
103 goto next;
104 }
105
106 if (nxt_strcmp(s->name, service->name) != 0) {
107 goto next;
108 }
109
110 nxt_thread_log_emerg("service \"%s:%s\" is duplicate",
110 nxt_thread_log_alert("service \"%s:%s\" is duplicate",
111 service->type, service->name);
112 return NXT_ERROR;
113
114 next:
115
116 s++;
117 n--;
118 }

--- 34 unchanged lines hidden (view full) ---

153 return s->service;
154 }
155 }
156
157 s++;
158 n--;
159 }
160
111 service->type, service->name);
112 return NXT_ERROR;
113
114 next:
115
116 s++;
117 n--;
118 }

--- 34 unchanged lines hidden (view full) ---

153 return s->service;
154 }
155 }
156
157 s++;
158 n--;
159 }
160
161 nxt_thread_log_emerg("service \"%s%s%s\" not found",
161 nxt_thread_log_alert("service \"%s%s%s\" not found",
162 type, (name != NULL) ? ":" : "", name);
163
164 return NULL;
165}
162 type, (name != NULL) ? ":" : "", name);
163
164 return NULL;
165}