Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-01-25 11:04:15 +0300
committerJunio C Hamano <gitster@pobox.com>2009-01-25 22:25:13 +0300
commitd456c9fd1e96c21ca32a224ed56ee34252605e34 (patch)
tree6b6417bb89c06e5fe768a7a97e10deb7b20c5ae3 /http-push.c
parent5dc1308562ab5991ecada68b06707709bea408c9 (diff)
http-push.c: style fixes
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>
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/http-push.c b/http-push.c
index eca4a8e5e9..59037df502 100644
--- a/http-push.c
+++ b/http-push.c
@@ -184,21 +184,22 @@ enum dav_header_flag {
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);