Just rename two generic-queue init routines from 'init_*' to '*_gi'

("gi" short for 'generic init'...).

MFC after:	10 days
This commit is contained in:
gad 2002-06-16 01:51:37 +00:00
parent 075d7239bd
commit 8da8ab73f4
3 changed files with 7 additions and 7 deletions

View File

@ -692,7 +692,7 @@ sortq(const void *a, const void *b)
*/
void
init_clean(int argc, char *argv[])
clean_gi(int argc, char *argv[])
{
/* init some fields before 'clean' is called for each queue */
@ -723,12 +723,12 @@ init_clean(int argc, char *argv[])
}
void
init_tclean(int argc, char *argv[])
tclean_gi(int argc, char *argv[])
{
/* only difference between 'clean' and 'tclean' is one value */
/* (...and the fact that 'clean' is priv and 'tclean' is not) */
init_clean(argc, argv);
clean_gi(argc, argv);
cln_testonly = 1;
return;

View File

@ -70,7 +70,7 @@ char uphelp[] = "enable everything and restart spooling daemon";
struct cmd cmdtab[] = {
{ "abort", aborthelp, PR, 0, abort_q },
{ "clean", cleanhelp, PR, init_clean, clean_q },
{ "clean", cleanhelp, PR, clean_gi, clean_q },
{ "enable", enablehelp, PR, 0, enable_q },
{ "exit", quithelp, 0, quit, 0 },
{ "disable", disablehelp, PR, 0, disable_q },
@ -82,7 +82,7 @@ struct cmd cmdtab[] = {
{ "status", statushelp, 0, 0, status },
{ "setstatus", setstatushelp, PR|M, setstatus_gi, setstatus_q },
{ "stop", stophelp, PR, 0, stop_q },
{ "tclean", tcleanhelp, 0, init_tclean, clean_q },
{ "tclean", tcleanhelp, 0, tclean_gi, clean_q },
{ "topq", topqhelp, PR, topq, 0 },
{ "up", uphelp, PR, 0, up_q },
{ "?", helphelp, 0, help, 0 },

View File

@ -43,6 +43,7 @@
__BEGIN_DECLS
void abort_q(struct printer *_pp);
void clean_gi(int _argc, char *_argv[]);
void clean_q(struct printer *_pp);
void disable_q(struct printer *_pp);
void down_gi(int _argc, char *_argv[]);
@ -52,8 +53,6 @@ void generic(void (*_specificrtn)(struct printer *_pp), int _cmdopts,
void (*_initcmd)(int _argc, char *_argv[]),
int _argc, char *_argv[]);
void help(int _argc, char *_argv[]);
void init_clean(int _argc, char *_argv[]);
void init_tclean(int _argc, char *_argv[]);
void quit(int _argc, char *_argv[]);
void restart_q(struct printer *_pp);
void setstatus_gi(int _argc, char *_argv[]);
@ -61,6 +60,7 @@ void setstatus_q(struct printer *_pp);
void start_q(struct printer *_pp);
void status(struct printer *_pp);
void stop_q(struct printer *_pp);
void tclean_gi(int _argc, char *_argv[]);
void topq(int _argc, char *_argv[]);
void up_q(struct printer *_pp);
void disable(struct printer *_pp); /* X-version */