This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project iwhd.git.
The branch, master has been updated via 2f9bb3adf0e201fd00c1b1abbd95dee892a67995 (commit) via d0ceff3457d861291f2139af3cad17fb423cddee (commit) from 604fc112cbda1ab89d8c94554055e447ab225c6d (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/iwhd.git/commit/2f9bb3adf0e201fd00c1b1abbd95dee892a67995
commit 2f9bb3adf0e201fd00c1b1abbd95dee892a67995 Author: Jim Meyering meyering@redhat.com Date: Tue Dec 14 18:09:20 2010 +0100
use strchr and strrchr, not index or rindex
* backend.c (curl_cache_child): s/index/strchr/ * rest.c (validate_url, register_image): Likewise and s/rindex/strrchr/
diff --git a/backend.c b/backend.c index 173586d..6f5945c 100644 --- a/backend.c +++ b/backend.c @@ -726,7 +726,7 @@ curl_cache_child (void * ctx) curl_easy_perform(curl); curl_easy_cleanup(curl);
- slash = index(my_url+1,'/'); + slash = strchr(my_url+1,'/'); if (slash) { *slash = '0'; meta_got_copy(my_url+1,slash+1,me); diff --git a/rest.c b/rest.c index 4512e71..cc75f68 100644 --- a/rest.c +++ b/rest.c @@ -154,7 +154,7 @@ is_reserved (const char *cand, char const *const *resv_list) static int validate_url (const char *url) { - char *slash = rindex(url,'/'); + char *slash = strrchr(url,'/');
if (!slash) { /* There should be at least one betwixt bucket and key. */ @@ -1334,7 +1334,7 @@ register_image (my_state *ms) return MHD_HTTP_BAD_REQUEST; }
- next = index(site,':'); + next = strchr(site,':'); if (next) { *(next++) = '0'; }
http://repo.or.cz/w/iwhd.git/commit/d0ceff3457d861291f2139af3cad17fb423cddee
commit d0ceff3457d861291f2139af3cad17fb423cddee Author: Jim Meyering meyering@redhat.com Date: Wed Dec 15 18:47:09 2010 +0100
fix trivial comment typo
diff --git a/rest.c b/rest.c index aa9854a..4512e71 100644 --- a/rest.c +++ b/rest.c @@ -478,7 +478,7 @@ proxy_put_data (void *cctx, struct MHD_Connection *conn, const char *url, * this callback without an error response, Microhttpd posts * the "100 Continue" header and the client starts sending * the data. We must report errors here or forever keep - * out peace. + * our peace. */ rc = pipe_prod_wait_init(&ms->pipe); if (rc != 0) {
-----------------------------------------------------------------------
Summary of changes: backend.c | 2 +- rest.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
repo.or.cz automatic notification. Contact project admin jim@meyering.net if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.
iwhd-commit@lists.fedorahosted.org