From dd79b1d8f8ae90cd34d5d0b307048c8aaea47d23 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 25 Jul 2006 14:06:14 +0000 Subject: 2006-07-25 Stefan Siegl * pq.c (packet_write): Only dereference AMOUNT if it is not the null pointer and document the change. * pq.h (packet_write): Document the change. --- libpipe/pq.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpipe/pq.h') diff --git a/libpipe/pq.h b/libpipe/pq.h index b98c8b19..3a26aa80 100644 --- a/libpipe/pq.h +++ b/libpipe/pq.h @@ -1,6 +1,6 @@ /* Packet queues - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 2006 Free Software Foundation, Inc. Written by Miles Bader @@ -78,7 +78,7 @@ packet_readable (struct packet *packet) } /* Append the bytes in DATA, of length DATA_LEN, to what's already in PACKET, - and return the amount appended in AMOUNT. */ + and return the amount appended in AMOUNT if that's not the null pointer. */ error_t packet_write (struct packet *packet, char *data, size_t data_len, size_t *amount); -- cgit v1.2.3