diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-20 04:36:34 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-20 04:36:34 +0200 |
commit | b9c8603931203f5d94091f7a05a5967304b62fbd (patch) | |
tree | b10ed1db8d2a34561f0f50488af73d820ecae019 /src/method.h | |
parent | ab4ca17ba3dfc92932834b09afc83cf7fe002a14 (diff) | |
download | fastd-b9c8603931203f5d94091f7a05a5967304b62fbd.tar fastd-b9c8603931203f5d94091f7a05a5967304b62fbd.zip |
Make conf global
Diffstat (limited to 'src/method.h')
-rw-r--r-- | src/method.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/method.h b/src/method.h index 159d2b8..b5ff2f5 100644 --- a/src/method.h +++ b/src/method.h @@ -63,11 +63,11 @@ struct fastd_method_provider { bool fastd_method_create_by_name(const char *name, const fastd_method_provider_t **provider, fastd_method_t **method); -static inline const fastd_method_info_t* fastd_method_get_by_name(fastd_context_t *ctx, const char *name) { +static inline const fastd_method_info_t* fastd_method_get_by_name(const char *name) { size_t i; - for (i = 0; ctx->conf->methods[i].name; i++) { - if (!strcmp(ctx->conf->methods[i].name, name)) - return &ctx->conf->methods[i]; + for (i = 0; conf.methods[i].name; i++) { + if (!strcmp(conf.methods[i].name, name)) + return &conf.methods[i]; } return NULL; |