Skip to content

Commit 92815b3

Browse files
spearcegitster
authored andcommitted
Git-aware CGI to provide dumb HTTP transport
http-backend: Fix symbol clash on AIX 5.3 Mike says: > > +static void send_file(const char *the_type, const char *name) > > +{ > > I think a symbol clash here is responsible for a build breakage in > next on AIX 5.3: > > CC http-backend.o > http-backend.c:213: error: conflicting types for `send_file' > /usr/include/sys/socket.h:676: error: previous declaration of `send_file' > gmake: *** [http-backend.o] Error 1 So we rename the function send_local_file(). Reported-by: Mike Ralphson <mike.ralphson@gmail.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 7f640b7 commit 92815b3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

http-backend.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ static void send_strbuf(const char *type, struct strbuf *buf)
209209
safe_write(1, buf->buf, buf->len);
210210
}
211211

212-
static void send_file(const char *the_type, const char *name)
212+
static void send_local_file(const char *the_type, const char *name)
213213
{
214214
const char *p = git_path("%s", name);
215215
size_t buf_alloc = 8192;
@@ -247,28 +247,28 @@ static void get_text_file(char *name)
247247
{
248248
select_getanyfile();
249249
hdr_nocache();
250-
send_file("text/plain", name);
250+
send_local_file("text/plain", name);
251251
}
252252

253253
static void get_loose_object(char *name)
254254
{
255255
select_getanyfile();
256256
hdr_cache_forever();
257-
send_file("application/x-git-loose-object", name);
257+
send_local_file("application/x-git-loose-object", name);
258258
}
259259

260260
static void get_pack_file(char *name)
261261
{
262262
select_getanyfile();
263263
hdr_cache_forever();
264-
send_file("application/x-git-packed-objects", name);
264+
send_local_file("application/x-git-packed-objects", name);
265265
}
266266

267267
static void get_idx_file(char *name)
268268
{
269269
select_getanyfile();
270270
hdr_cache_forever();
271-
send_file("application/x-git-packed-objects-toc", name);
271+
send_local_file("application/x-git-packed-objects-toc", name);
272272
}
273273

274274
static int http_config(const char *var, const char *value, void *cb)

0 commit comments

Comments
 (0)