diff options
author | Luke Leighton <lkcl@samba.org> | 1999-05-07 18:20:59 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-05-07 18:20:59 +0000 |
commit | 94a4094f444ba7433dbf812b1252d964adfa6916 (patch) | |
tree | 8de08ee147b9c9d17bc5545587fff563c663ea86 | |
parent | 798fdf4fd838cd361968debb56aaba2006f5bed1 (diff) | |
download | samba-94a4094f444ba7433dbf812b1252d964adfa6916.tar.gz samba-94a4094f444ba7433dbf812b1252d964adfa6916.tar.bz2 samba-94a4094f444ba7433dbf812b1252d964adfa6916.zip |
had to move day display names into lib/util, to get rpctorture to compile.
(This used to be commit 8c80742e4e5604bc667314e51c47924efd65df49)
-rw-r--r-- | source3/lib/util.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/cmd_atsvc.c | 4 | ||||
-rw-r--r-- | source3/utils/rpctorture.c | 8 |
3 files changed, 9 insertions, 5 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 8852ada0cc..d1519cd8d2 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -85,6 +85,8 @@ char **my_netbios_names; static char *filename_dos(char *path,char *buf); +char *daynames[] = {"Mon","Tue","Wed","Thu","Fri","Sat","Sun"}; +char *daynames_short[] = {"M", "Tu", "W", "Th", "F", "Sa", "Su"}; /************************************************************* initialise password databases, domain names, domain sid. diff --git a/source3/rpcclient/cmd_atsvc.c b/source3/rpcclient/cmd_atsvc.c index 7e9f05fb6f..322ef71c39 100644 --- a/source3/rpcclient/cmd_atsvc.c +++ b/source3/rpcclient/cmd_atsvc.c @@ -64,8 +64,8 @@ static BOOL checkopt(char *input, char *optname, char **params) return True; } -char *daynames[] = {"Mon","Tue","Wed","Thu","Fri","Sat","Sun"}; -char *daynames_short[] = {"M", "T", "W", "Th", "F", "S", "Su"}; +extern char *daynames_short[]; +extern char *daynames[]; /**************************************************************************** parses a list of days of the week and month diff --git a/source3/utils/rpctorture.c b/source3/utils/rpctorture.c index 831af55e0f..86729c3d10 100644 --- a/source3/utils/rpctorture.c +++ b/source3/utils/rpctorture.c @@ -556,8 +556,8 @@ static void run_pipegobble(int numops, struct client_info *cli_info, char *pipe_ static void run_handles(int numops, struct client_info *cli_info) { - run_samhandles(numops, cli_info); run_lsahandles(numops, cli_info); + run_samhandles(numops, cli_info); } static void run_pipegobbler(int numops, struct client_info *cli_info) @@ -634,6 +634,8 @@ static void usage(char *pname) fprintf(out_hnd, "\t-U username set the network username\n"); fprintf(out_hnd, "\t-W workgroup set the workgroup name\n"); fprintf(out_hnd, "\t-t terminal code terminal i/o code {sjis|euc|jis7|jis8|junet|hex}\n"); + fprintf(out_hnd, "\t-N processes number of processes\n"); + fprintf(out_hnd, "\t-o operations number of operations\n"); fprintf(out_hnd, "\n"); } @@ -956,12 +958,12 @@ enum client_action } */ - create_procs(nprocs, numops, &cli_info, run_randomrpc); /* + create_procs(nprocs, numops, &cli_info, run_randomrpc); create_procs(nprocs, numops, &cli_info, run_pipegobbler); create_procs(nprocs, numops, &cli_info, run_tcpconnect); - create_procs(nprocs, numops, &cli_info, run_handles); */ + create_procs(nprocs, numops, &cli_info, run_handles); fflush(out_hnd); |