summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr/common_source
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2002-07-12 00:33:07 +0000
committergad <gad@FreeBSD.org>2002-07-12 00:33:07 +0000
commitf95138e697fbadde75e008608dfcede5735788fd (patch)
treea8869db494752afb19139044658aafbd89c2b8da /usr.sbin/lpr/common_source
parent5d8999f18a0f3915a58377ada8c5eba3770bcb42 (diff)
downloadFreeBSD-src-f95138e697fbadde75e008608dfcede5735788fd.zip
FreeBSD-src-f95138e697fbadde75e008608dfcede5735788fd.tar.gz
Move prototypes for ctl_readcf and ctl_freeinf from ctlinfo.c to ctlinfo.h,
so the routines can be called by an upcoming change for 'lpc topq/bottomq'. MFC after: 3 days
Diffstat (limited to 'usr.sbin/lpr/common_source')
-rw-r--r--usr.sbin/lpr/common_source/ctlinfo.c2
-rw-r--r--usr.sbin/lpr/common_source/ctlinfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/common_source/ctlinfo.c b/usr.sbin/lpr/common_source/ctlinfo.c
index 085db04..3e704f2 100644
--- a/usr.sbin/lpr/common_source/ctlinfo.c
+++ b/usr.sbin/lpr/common_source/ctlinfo.c
@@ -93,9 +93,7 @@ extern const char *from_ip; /* client machine's IP address */
__BEGIN_DECLS
void ctl_dumpcji(FILE *_dbg_stream, const char *_heading,
struct cjobinfo *_cjinf);
-void ctl_freeinf(struct cjobinfo *_cjinf);
static char *ctl_getline(struct cjobinfo *_cjinf);
-struct cjobinfo *ctl_readcf(const char *_ptrname, const char *_cfname);
static void ctl_rewindcf(struct cjobinfo *_cjinf);
char *ctl_rmjob(const char *_ptrname, const char *_cfname);
__END_DECLS
diff --git a/usr.sbin/lpr/common_source/ctlinfo.h b/usr.sbin/lpr/common_source/ctlinfo.h
index b79f861..501471b 100644
--- a/usr.sbin/lpr/common_source/ctlinfo.h
+++ b/usr.sbin/lpr/common_source/ctlinfo.h
@@ -67,5 +67,7 @@ struct cjobinfo {
#include <sys/cdefs.h>
__BEGIN_DECLS
+void ctl_freeinf(struct cjobinfo *_cjinf);
+struct cjobinfo *ctl_readcf(const char *_ptrname, const char *_cfname);
char *ctl_renametf(const char *_ptrname, const char *_tfname);
__END_DECLS
OpenPOWER on IntegriCloud