r17078: Ouch....
authorVolker Lendecke <vlendec@samba.org>
Sun, 16 Jul 2006 06:33:41 +0000 (06:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:10 +0000 (11:38 -0500)
(This used to be commit 1d928f783a78b3e957b675f12f1ad56e84c2fcfb)

source3/utils/net.c

index b09b46d6af9e53bd9b21d9267f2b4af160604238..8b4fb042fcf73d928261ee4c8887251d1eb12d25 100644 (file)
@@ -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},