/*
- * $Id: psf.c,v 1.8 2002-05-23 15:58:55 rufustfirefly Exp $
+ * $Id: psf.c,v 1.8.8.1 2004-01-10 08:24:23 bfernhomberg Exp $
*
* Copyright (c) 1990,1995 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
{
int c, rc, children = 0;
#ifdef FUCKED
- int psafileno, multiconn = 0, waitidle = 0, waitidle2 = 0;
+ int psafileno = 0, multiconn = 0, waitidle = 0, waitidle2 = 0;
#endif /* FUCKED */
int status;
extern char *optarg;
int textps()
{
struct papersize papersize;
- int state = 0, line = 0, col = 0, npages = 0, rc, i;
+ int state = 0, line = 0, col = 0, npages = 0, rc;
+ unsigned int i;
char *p, *end;
#define elements(x) (sizeof(x)/sizeof((x)[0]))
static void smb_panic(const char *why)
{
+#if 0
char *cmd;
int result;
+#endif
#ifdef HAVE_BACKTRACE_SYMBOLS
void *backtrace_stack[BACKTRACE_STACK_SIZE];
size_t backtrace_size;
}
new = (char **) malloc((ifc.ifc_len/sizeof(struct ifreq) + 1) * sizeof(char *));
- for ( ifr = ifc.ifc_req; ifc.ifc_len >= sizeof( struct ifreq );
+ for ( ifr = ifc.ifc_req; ifc.ifc_len >= (int) sizeof( struct ifreq );
ifc.ifc_len -= ifrsize, ifr = nextifr ) {
#ifdef BSD4_4
ifrsize = sizeof(ifr->ifr_name) +
if (what_to_print.print_srcfile || what_to_print.print_srcline)
{
char sprintf_buffer[8];
- char *buff_ptr;
+ char *buff_ptr=NULL;
sprintf_buffer[0] = '[';
if (what_to_print.print_srcfile)
/*
- * $Id: server_ipc.c,v 1.1.4.1 2003-07-21 05:50:55 didg Exp $
+ * $Id: server_ipc.c,v 1.1.4.1.2.1 2004-01-10 08:29:16 bfernhomberg Exp $
*
* All rights reserved. See COPYRIGHT.
*
memset (buf, 0, IPC_MAXMSGSIZE);
if ( ipc.len != 0) {
- if ((ret = read(pipe_fd[0], buf, ipc.len)) != ipc.len) {
+ if ((ret = read(pipe_fd[0], buf, ipc.len)) != (int) ipc.len) {
LOG (log_info, logtype_afpd, "Reading IPC message failed (%u of %u bytes read)", ret, ipc.len);
return -1;
}