summaryrefslogtreecommitdiff
path: root/omapip/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'omapip/buffer.c')
-rw-r--r--omapip/buffer.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/omapip/buffer.c b/omapip/buffer.c
index 041be497..e521a435 100644
--- a/omapip/buffer.c
+++ b/omapip/buffer.c
@@ -146,7 +146,7 @@ static isc_result_t omapi_connection_reader_trace (omapi_object_t *h,
int read_status;
omapi_connection_object_t *c;
unsigned bytes_to_read;
-
+
if (!h || h -> type != omapi_type_connection)
return DHCP_R_INVALIDARG;
c = (omapi_connection_object_t *)h;
@@ -421,7 +421,7 @@ isc_result_t omapi_connection_copyout (unsigned char *buf,
buffer -> head = first_byte + bytes_this_copy - 1;
c -> in_bytes -= bytes_this_copy;
}
-
+
if (!BYTES_IN_BUFFER (buffer))
buffer = buffer -> next;
}
@@ -516,14 +516,14 @@ isc_result_t omapi_connection_writer (omapi_object_t *h)
isc_result_t status;
trace_iov_t iov [2];
int32_t connect_index;
-
+
connect_index = htonl (c -> index);
-
+
iov [0].buf = (char *)&connect_index;
iov [0].len = sizeof connect_index;
iov [1].buf = &buffer -> buf [buffer -> tail];
iov [1].len = bytes_written;
-
+
status = (trace_write_packet_iov
(trace_connection_input, 2, iov,
MDL));
@@ -545,11 +545,11 @@ isc_result_t omapi_connection_writer (omapi_object_t *h)
if (bytes_written != bytes_this_write)
return ISC_R_INPROGRESS;
}
-
+
if (!BYTES_IN_BUFFER (buffer))
buffer = buffer -> next;
}
-
+
/* Get rid of any output buffers we emptied. */
buffer = (omapi_buffer_t *)0;
while (c -> outbufs &&
@@ -598,7 +598,7 @@ isc_result_t omapi_connection_put_uint32 (omapi_object_t *c,
u_int32_t inbuf;
inbuf = htonl (value);
-
+
return omapi_connection_copyin (c, (unsigned char *)&inbuf,
sizeof inbuf);
}
@@ -624,7 +624,7 @@ isc_result_t omapi_connection_put_uint16 (omapi_object_t *c,
u_int16_t inbuf;
inbuf = htons (value);
-
+
return omapi_connection_copyin (c, (unsigned char *)&inbuf,
sizeof inbuf);
}
@@ -740,4 +740,3 @@ isc_result_t omapi_connection_put_named_uint32 (omapi_object_t *c,
status = omapi_connection_put_uint32(c, value);
return (status);
}
-