/*
- * $Id: lp.c,v 1.28 2009-10-13 22:55:37 didg Exp $
+ * $Id: lp.c,v 1.31 2009-10-22 13:40:11 franklahm Exp $
*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
int lp_conn_unix();
int lp_disconn_unix( int );
-char hostname[ MAXHOSTNAMELEN ];
+static char hostname[ MAXHOSTNAMELEN ];
extern struct sockaddr_at *sat;
-struct lp {
+static struct lp {
int lp_flags;
FILE *lp_stream;
int lp_seq;
char temp[4];
long int ch;
- q=p=string;
+ q=p=(unsigned char *)string;
while ( *p != '\0' ) {
ch = 0;
if ( *p == '\\' ) {
#define is_var(a, b) (strncmp((a), (b), 2) == 0)
+#if 0
+/* removed, it's not used and a pain to get it right from a security POV */
static size_t quote(char *dest, char *src, const size_t bsize, size_t len)
{
size_t used = 0;
return used;
}
-
static char* pipexlate(char *src)
{
char *p, *q, *dest;
}
return destbuf;
}
-
+#endif
void lp_person(char *person)
{