summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/dtch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dtch.c b/bin/dtch.c
index fa97fdcc..61bf2378 100644
--- a/bin/dtch.c
+++ b/bin/dtch.c
@@ -47,7 +47,7 @@ static struct passwd *getUser(void) {
 }
 
 static struct sockaddr_un sockAddr(const char *home, const char *name) {
-	struct sockaddr_un addr = { .sun_family = AF_LOCAL };
+	struct sockaddr_un addr = { .sun_family = AF_UNIX };
 	snprintf(addr.sun_path, sizeof(addr.sun_path), "%s/.dtch/%s", home, name);
 	return addr;
 }
@@ -126,7 +126,7 @@ static int dtch(int argc, char *argv[]) {
 
 	close(home);
 
-	int server = socket(PF_LOCAL, SOCK_STREAM, 0);
+	int server = socket(PF_UNIX, SOCK_STREAM, 0);
 	if (server < 0) err(EX_OSERR, "socket");
 
 	addr = sockAddr(user->pw_dir, name);
@@ -181,7 +181,7 @@ static int atch(int argc, char *argv[]) {
 	const struct passwd *user = getUser();
 	const char *name = (argc > 1) ? argv[1] : user->pw_name;
 
-	int client = socket(PF_LOCAL, SOCK_STREAM, 0);
+	int client = socket(PF_UNIX, SOCK_STREAM, 0);
 	if (client < 0) err(EX_OSERR, "socket");
 
 	struct sockaddr_un addr = sockAddr(user->pw_dir, name);
amp;follow=1'>Set FCEDIT=$EDITORJune McEnroe 2018-08-18Only post commits with bodies to MastodonJune McEnroe 2018-08-18Run tf/cfg link script with /bin/shJune McEnroe 2018-08-18Run {,s,t}up with /bin/shJune McEnroe 2018-08-18Use whence instead of typeJune McEnroe type is an alias for whence -v and is more for human consumption. 2018-08-18Cut off path components until right prompt fitsJune McEnroe Keeps paths valid (from somehwere) rather than abrupt truncation. 2018-08-17Add "private" alias to source encrypted fileJune McEnroe Why is there no easy way to *edit* an encrypted file? 2018-08-17Add vim mapping to add a #includeJune McEnroe