summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5dc1308)
raw | patch | inline | side by side (parent: 5dc1308)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 25 Jan 2009 08:04:15 +0000 (00:04 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 25 Jan 2009 19:25:13 +0000 (11:25 -0800) |
b1c7d4a (http-push: refactor lock-related headers creation for curl
requests, 2009-01-24) had many style violations that slipped through.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
requests, 2009-01-24) had many style violations that slipped through.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-push.c | patch | blob | history |
diff --git a/http-push.c b/http-push.c
index eca4a8e5e9898c883fe6bcec3a9635dbfce27dd8..59037df5025f0e71b882d53489fe5274aa9065f0 100644 (file)
--- a/http-push.c
+++ b/http-push.c
DAV_HEADER_TIMEOUT = (1u << 2)
};
-static struct curl_slist *get_dav_token_headers(struct remote_lock *lock, enum dav_header_flag options) {
+static struct curl_slist *get_dav_token_headers(struct remote_lock *lock, enum dav_header_flag options)
+{
struct strbuf buf = STRBUF_INIT;
struct curl_slist *dav_headers = NULL;
- if(options & DAV_HEADER_IF) {
+ if (options & DAV_HEADER_IF) {
strbuf_addf(&buf, "If: (<%s>)", lock->token);
dav_headers = curl_slist_append(dav_headers, buf.buf);
strbuf_reset(&buf);
}
- if(options & DAV_HEADER_LOCK) {
+ if (options & DAV_HEADER_LOCK) {
strbuf_addf(&buf, "Lock-Token: <%s>", lock->token);
dav_headers = curl_slist_append(dav_headers, buf.buf);
strbuf_reset(&buf);
}
- if(options & DAV_HEADER_TIMEOUT) {
+ if (options & DAV_HEADER_TIMEOUT) {
strbuf_addf(&buf, "Timeout: Second-%ld", lock->timeout);
dav_headers = curl_slist_append(dav_headers, buf.buf);
strbuf_reset(&buf);