* Let the reader beware.
*
* $Log$
- * Revision 1.4 1987-06-02 20:05:11 wesommer
- * Bug fixes on memory allocation.
+ * Revision 1.5 1987-06-03 16:07:17 wesommer
+ * Fixes for lint.
*
+ * Revision 1.4 87/06/02 20:05:11 wesommer
+ * Bug fixes on memory allocation.
+ *
* Revision 1.3 87/06/01 04:34:27 wesommer
* Changed returned error code.
*
/*
* GDB initialization.
*/
- gdb_init();
+ if(gdb_init() != 0) {
+ com_err(whoami, 0, "GDB initialization failed.");
+ exit(1);
+ }
/*
* Set up client array handler.
/*
* Block until something happens.
*/
- op_select_any(op_list, 0, NULL, NULL, NULL, NULL);
+#ifdef notdef
+ com_err(whoami, 0, "tick");
+#endif notdef
+ errno = 0;
+ status = op_select_any(op_list, 0,
+ (fd_set *)NULL, (fd_set *)NULL,
+ (fd_set *)NULL, (struct timeval *)NULL);
+
+ if (status == -1) {
+ com_err(whoami, errno, "error from op_select");
+ continue;
+ } else if (status != -2) {
+ com_err(whoami, 0, "wrong return from op_select_any");
+ continue;
+ }
if (takedown) break;
#ifdef notdef
fprintf(stderr, " tick\n");
* Handle any new connections.
*/
if (OP_DONE(listenop)) {
- if ((status = new_connection(listenop)) != 0) {
+ if ((status = new_connection()) != 0) {
com_err(whoami, errno,
"Error on listening operation.");
/*
* It sets up a new client and adds it to the list of currently active clients.
*/
int
-new_connection(listenop)
- OPERATION listenop;
+new_connection()
{
register client *cp = (client *)malloc(sizeof *cp);
static counter = 0;
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
* $Log$
- * Revision 1.1 1987-06-02 20:07:10 wesommer
- * Initial revision
+ * Revision 1.2 1987-06-03 16:07:50 wesommer
+ * Fixes for lint.
*
+ * Revision 1.1 87/06/02 20:07:10 wesommer
+ * Initial revision
+ *
*/
#ifndef lint
case CL_SEND:
/* Start recieving next request */
initialize_operation(cp->pending_op, sms_start_recv,
- (char *)&cp->args, NULL);
+ (char *)&cp->args, (int (*)())NULL);
queue_operation(cp->con, CON_INPUT, cp->pending_op);
cp->action = CL_RECEIVE;
break;
/* Data is here. Process it & start it heading back */
do_call(cp); /* This may block for a while. */
initialize_operation(cp->pending_op, sms_start_send,
- (char *)&cp->reply, NULL);
+ (char *)&cp->reply, (int (*)())NULL);
queue_operation(cp->con, CON_OUTPUT, cp->pending_op);
cp->action = CL_SEND;
break;
* Copyright (C) 1987 by the Massachusetts Institute of Technology
*
* $Log$
- * Revision 1.2 1987-06-01 03:35:10 wesommer
- * added stuff for authentication.
+ * Revision 1.3 1987-06-03 16:07:59 wesommer
+ * Fixes for lint.
*
+ * Revision 1.2 87/06/01 03:35:10 wesommer
+ * added stuff for authentication.
+ *
*/
+#include <sys/types.h>
+#include <sys/uio.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
+
typedef struct _client {
OPERATION pending_op;
CONNECTION con;