hunt/playit.c
/*
 * do_message:
 *	Send a message to the driver and return
 */
Send a message to the driver and return
Send a message to the driver and return
void
do_message(char* message)
{
	uint32_t	version;
	if (read(Socket, &version, sizeof version) != sizeof version) {
		bad_con();
	}
	if (ntohl(version) != HUNT_VERSION) {
		bad_ver();
	}
	if (write(Socket, message, strlen(message)) < 0) {
		bad_con();
	}
	(void) close(Socket);
}
void do_message ( char * message ) { uint32_t version ; if ( read ( Socket , & version , sizeof version ) != sizeof version ) { bad_con ( ) ; } if ( ntohl ( version ) != HUNT_VERSION ) { bad_ver ( ) ; } if ( write ( Socket , message , strlen ( message ) ) < 0 ) { bad_con ( ) ; } ( void ) close ( Socket ) ; }
do_message:
      Send a message to the driver and return
do_message : Send a message to the driver and return
/* NOTREACHED */ /* NOTREACHED */ /* NOTREACHED */