summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c2
-rw-r--r--source3/rpcclient/cmd_atsvc.c4
-rw-r--r--source3/utils/rpctorture.c8
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);