Optimize code

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
main
Jianhui Zhao 2020-12-18 11:19:56 +08:00
parent bb9a1d2a34
commit 7d94ddaedf
2 changed files with 0 additions and 4 deletions

View File

@ -175,7 +175,6 @@ static int uh_load_plugin(struct uh_server *srv, const char *path)
}
p->next = srv->plugins;
srv->plugins->prev = p;
srv->plugins = p;
return 0;
@ -204,7 +203,6 @@ static int uh_add_path_handler(struct uh_server *srv, const char *path, uh_path_
}
h->next = srv->handlers;
srv->handlers->prev = h;
srv->handlers = h;
return 0;

View File

@ -41,7 +41,6 @@ struct uh_plugin_handler {
struct uh_plugin {
struct uh_plugin_handler *h;
void *dlh;
struct uh_plugin *prev;
struct uh_plugin *next;
};
@ -52,7 +51,6 @@ enum {
struct uh_path_handler {
uh_path_handler_prototype handler;
struct uh_path_handler *prev;
struct uh_path_handler *next;
char path[0];
};