summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-01-02 17:44:12 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-01-02 17:44:12 +0000
commite987517b4cc0fd7e5242b625b98d8583608f5717 (patch)
tree1b9342e7d9f34ebaa8b30342239761947d66adb3 /usr.bin
parentdf8bc4d7a437f13aaa4858426b0e6f5a9a034788 (diff)
remove unused function
from tobias@ ok millert@ tobias@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rdist/common.c21
-rw-r--r--usr.bin/rdist/defs.h3
2 files changed, 3 insertions, 21 deletions
diff --git a/usr.bin/rdist/common.c b/usr.bin/rdist/common.c
index 2d1c8a5ebc4..564d8d9a7e6 100644
--- a/usr.bin/rdist/common.c
+++ b/usr.bin/rdist/common.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: common.c,v 1.21 2003/06/03 02:56:14 millert Exp $ */
+/* $OpenBSD: common.c,v 1.22 2008/01/02 17:44:11 chl Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -36,7 +36,7 @@ static char RCSid[] __attribute__((__unused__)) =
"$From: common.c,v 1.8 2001/03/12 18:16:36 kim Exp $";
#else
static char RCSid[] __attribute__((__unused__)) =
-"$OpenBSD: common.c,v 1.21 2003/06/03 02:56:14 millert Exp $";
+"$OpenBSD: common.c,v 1.22 2008/01/02 17:44:11 chl Exp $";
#endif
static char sccsid[] __attribute__((__unused__)) =
@@ -977,20 +977,3 @@ mysetlinebuf(FILE *fp)
No SETBUF_TYPE is defined!
#endif /* SETBUF_TYPE */
}
-
-/*
- * Our interface to system call to get a socket pair.
- */
-int
-getsocketpair(int domain, int type, int protocol, int sv[])
-{
-#if SOCKPAIR_TYPE == SOCKPAIR_SOCKETPAIR
- return(socketpair(domain, type, protocol, sv));
-#endif /* SOCKPAIR_SOCKETPAIR */
-#if SOCKPAIR_TYPE == SOCKPAIR_SPIPE
- return(spipe(sv));
-#endif /* SOCKPAIR_SPIPE */
-#if !defined(SOCKPAIR_TYPE)
- No SOCKPAIR_TYPE is defined!
-#endif /* SOCKPAIR_TYPE */
-}
diff --git a/usr.bin/rdist/defs.h b/usr.bin/rdist/defs.h
index 24dcb5246db..378ff9379ea 100644
--- a/usr.bin/rdist/defs.h
+++ b/usr.bin/rdist/defs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: defs.h,v 1.15 2003/11/08 19:17:29 jmc Exp $ */
+/* $OpenBSD: defs.h,v 1.16 2008/01/02 17:44:11 chl Exp $ */
#ifndef __DEFS_H__
#define __DEFS_H__
@@ -387,7 +387,6 @@ char *xstrdup(const char *);
char *xbasename(char *);
char *searchpath(char *);
int mysetlinebuf(FILE *);
-int getsocketpair(int, int, int, int[]);
/* distopt.c */
DISTOPTINFO *getdistopt(char *, int *);