projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Network errors could pollute the buffers because -1 isn't noticed in an
[openssl.git]
/
demos
/
tunala
/
buffer.c
diff --git
a/demos/tunala/buffer.c
b/demos/tunala/buffer.c
index dc26c88601dc8edbd6603d2c38b042df76010959..c5cd004209ad9a033781e7ff33612985c1e3674d 100644
(file)
--- a/
demos/tunala/buffer.c
+++ b/
demos/tunala/buffer.c
@@
-87,7
+87,7
@@
static unsigned int buffer_takedata(buffer_t *buf, unsigned char *ptr,
int buffer_from_fd(buffer_t *buf, int fd)
{
int buffer_from_fd(buffer_t *buf, int fd)
{
-
unsigned
int toread = buffer_unused(buf);
+ int toread = buffer_unused(buf);
if(toread == 0)
/* Shouldn't be called in this case! */
abort();
if(toread == 0)
/* Shouldn't be called in this case! */
abort();
@@
-101,7
+101,7
@@
int buffer_from_fd(buffer_t *buf, int fd)
int buffer_to_fd(buffer_t *buf, int fd)
{
int buffer_to_fd(buffer_t *buf, int fd)
{
-
unsigned
int towrite = buffer_used(buf);
+ int towrite = buffer_used(buf);
if(towrite == 0)
/* Shouldn't be called in this case! */
abort();
if(towrite == 0)
/* Shouldn't be called in this case! */
abort();