#define _PATH_PAPRC ".paprc"
char *nbpfailure = "AppleTalk printer offline";
+/* Forward Declarations */
+void updatestatus(char *s, int len);
+int send_file(int fd, ATP atp, int lastfile);
+
/* if there is a less hacky way to do this, please do it... */
#ifdef DEBUG
#define EBUG
#define DEBUG(x,y)
#endif /*EBUG*/
-usage( path )
+void usage( path )
char *path;
{
char *p;
{ nbuf[ 7 ] + 4, 0 },
};
-main( ac, av )
+int main( ac, av )
int ac;
char **av;
{
DEBUG( printf( "< OPENREPLY\n" ), fflush( stdout ));
if ( isatty( 1 )) {
- printf( "%.*s\n", iov.iov_len - 9, (char *) iov.iov_base + 9 );
+ printf( "%.*s\n", (int)iov.iov_len - 9, (char *) iov.iov_base + 9 );
}
updatestatus( (char *) iov.iov_base + 9, iov.iov_len - 9 );
unsigned char port;
u_int16_t seq = 0, rseq = 1;
-send_file( fd, atp, lastfile )
+int send_file( fd, atp, lastfile )
int fd;
ATP atp;
int lastfile;
}
}
-updatestatus( s, len )
+void updatestatus( s, len )
char *s;
int len;
{
#include <atalk/nbp.h>
#include <atalk/util.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define _PATH_PAPRC ".paprc"
-usage( path )
+/* Forward Declaration */
+void getstatus(ATP atp, struct sockaddr_at *sat);
+
+void usage( path )
char *path;
{
char *p;
char cbuf[ 8 ];
struct nbpnve nn;
-main( ac, av )
+int main( ac, av )
int ac;
char **av;
{
getstatus( atp, &nn.nn_sat );
sleep( wait );
}
+
+ return 0;
}
-getstatus( atp, sat )
+void getstatus( atp, sat )
ATP atp;
struct sockaddr_at *sat;
{
return; /* This is weird, since TIDs must match... */
}
- printf( "%.*s\n", iov.iov_len - 9, (char *) iov.iov_base + 9 );
+ printf( "%.*s\n", (int)iov.iov_len - 9, (char *) iov.iov_base + 9 );
}
struct psinfo_st psinfo;
int orderflag, forceflag;
-main( argc, argv )
+int main( argc, argv )
int argc;
char **argv;
{
#endif
pa_match( pb );
ccmatch = ccread - 1;
- while ( c = pa_getchar( pb )) {
+ while ( ( c = pa_getchar( pb ) ) ) {
if ( c != 0 ) {
ccread++;
(void)putc( c, tempstream );