[PATCH] compat: replace AF_LOCAL with AF_UNIX

There's no AF_LOCAL in POSIX
This commit is contained in:
Edgar Toernig
2005-04-30 09:51:03 -07:00
committed by Linus Torvalds
parent b682969367
commit ae200ee594
2 changed files with 5 additions and 5 deletions

8
tag.c
View File

@ -26,6 +26,10 @@ int parse_tag(struct tag *item)
char type[20];
void *data, *bufptr;
unsigned long size;
int typelen, taglen;
unsigned char object[20];
const char *type_line, *tag_line, *sig_line;
if (item->object.parsed)
return 0;
item->object.parsed = 1;
@ -37,10 +41,6 @@ int parse_tag(struct tag *item)
return error("Object %s not a tag",
sha1_to_hex(item->object.sha1));
int typelen, taglen;
unsigned char object[20];
const char *type_line, *tag_line, *sig_line;
if (size < 64)
return -1;
if (memcmp("object ", data, 7) || get_sha1_hex(data + 7, object))