summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-16 06:33:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:10 -0500
commit514af16de50798dbbf3d054ffc99d433f50361ca (patch)
treef41e5e5dbb2db845691ce1ef533abaa267d37441 /source3
parent95fd775e815e797534881c4f8d6e395669652037 (diff)
downloadsamba-514af16de50798dbbf3d054ffc99d433f50361ca.tar.gz
samba-514af16de50798dbbf3d054ffc99d433f50361ca.tar.bz2
samba-514af16de50798dbbf3d054ffc99d433f50361ca.zip
r17078: Ouch....
(This used to be commit 1d928f783a78b3e957b675f12f1ad56e84c2fcfb)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c
index b09b46d6af..8b4fb042fc 100644
--- a/source3/utils/net.c
+++ b/source3/utils/net.c
@@ -796,45 +796,9 @@ static int net_maxrid(int argc, const char **argv)
return 0;
}
-#include "/data/pth-2.0.7/include/pth.h"
-
-static void *thread_routine(void *arg)
-{
- d_printf("In thread\n");
- return arg;
-}
-
-static int net_pthtest(int argc, const char **argv)
-{
- int res;
- void *x;
- pth_t t;
- pth_attr_t t_attr;
-
- if ((res = pth_init()) < 0) {
- d_printf("pth_init failed: %d\n", res);
- return -1;
- }
-
- t_attr = pth_attr_new();
-
- if (!(t = pth_spawn(t_attr, thread_routine, &res))) {
- d_printf("pth_spawn failed\n");
- return -1;
- }
-
- if ((res = pth_join(t, &x)) < 0) {
- d_printf("pth_join failed\n");
- return -1;
- }
-
- return 0;
-}
-
/* main function table */
static struct functable net_func[] = {
{"RPC", net_rpc},
- {"PTH", net_pthtest},
{"RAP", net_rap},
{"ADS", net_ads},