Skip to content

Commit

Permalink
Change commit int/uint to just uint
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Clyne committed Oct 12, 2010
1 parent d3aa58d commit 2e48cd4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions src/ndk_conf_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ ndk_conf_set_str_array_multi_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *con
ngx_str_t *value, *s;
ngx_array_t **a;
ngx_conf_post_t *post;
ngx_int_t i;

ngx_uint_t i;
a = (ngx_array_t **) (p + cmd->offset);

if (*a == NGX_CONF_UNSET_PTR) {
Expand All @@ -157,7 +157,9 @@ ndk_conf_set_str_array_multi_slot (ngx_conf_t *cf, ngx_command_t *cmd, void *con
}
}

for (i=1; i<cf->args->nelts; i++) {
s = NULL;

for (i=cf->args->nelts-1; i; i--) {

s = ngx_array_push(*a);
if (s == NULL) {
Expand Down
7 changes: 4 additions & 3 deletions src/ndk_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ ndk_atoi64 (u_char *line, size_t n)
ngx_int_t
ndk_strcntc (ngx_str_t *s, char c)
{
ngx_int_t i, n;
ngx_int_t n;
size_t i;
u_char *p;

n = s->len;
i = s->len;
p = s->data;

for (i=0; i<s->len; i++, p++) {
for (n=0; i; i--, p++) {

if (*p == (u_char) c)
n++;
Expand Down

0 comments on commit 2e48cd4

Please sign in to comment.