summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b682969)
raw | patch | inline | side by side (parent: b682969)
author | Edgar Toernig <froese@gmx.de> | |
Sat, 30 Apr 2005 16:51:03 +0000 (09:51 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sat, 30 Apr 2005 16:51:03 +0000 (09:51 -0700) |
There's no AF_LOCAL in POSIX
rsh.c | patch | blob | history | |
tag.c | patch | blob | history |
index af2f47b174e3895e6c02c4cd8f16a89e3bacbbbb..2a52e598164b565fcb06e452d6fb9866344e4c12 100644 (file)
--- a/rsh.c
+++ b/rsh.c
}
}
strcpy(posn, " -");
- if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sv)) {
+ if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) {
return error("Couldn't create socket");
}
if (!fork()) {
index f079d83a9de5c3d6d98b2a29339ec1ef3a25f333..406dba2aa5607332fe022fcba1beb045fa61c5f4 100644 (file)
--- a/tag.c
+++ b/tag.c
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;
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))