Merge pull request #109 from fahlgren/cleanup

Cleanup
This commit is contained in:
Joris Vink 2016-02-12 12:00:15 +01:00
commit 91fb225e5c
2 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ struct http_arg {
#define COPY_ARG_TYPE(v, t) \
do { \
*(t *)nout = v; \
} while (0);
} while (0)
#define COPY_ARG_INT64(type, sign) \
do { \
@ -80,7 +80,7 @@ struct http_arg {
if (err != KORE_RESULT_OK) \
return (KORE_RESULT_ERROR); \
COPY_ARG_TYPE(nval, type); \
} while (0);
} while (0)
#define COPY_ARG_INT(min, max, type) \
do { \
@ -90,21 +90,21 @@ struct http_arg {
if (err != KORE_RESULT_OK) \
return (KORE_RESULT_ERROR); \
COPY_ARG_TYPE(nval, type); \
} while (0);
} while (0)
#define COPY_AS_INTTYPE_64(type, sign) \
do { \
if (nout == NULL) \
return (KORE_RESULT_ERROR); \
COPY_ARG_INT64(type, sign); \
} while (0);
} while (0)
#define COPY_AS_INTTYPE(min, max, type) \
do { \
if (nout == NULL) \
return (KORE_RESULT_ERROR); \
COPY_ARG_INT(min, max, type); \
} while (0);
} while (0)
#define http_argument_type(r, n, so, no, t) \
http_argument_get(r, n, so, no, t)

View File

@ -109,7 +109,7 @@ kore_worker_init(void)
kore_debug("kore_worker_init(): starting %d workers", worker_count);
if (worker_count > cpu_count) {
kore_debug("kore_worker_init(): more workers then cpu's");
kore_debug("kore_worker_init(): more workers than cpu's");
}
cpu = 0;