commit | 39bb418d930def5f0e765756a904573b56c83d2b | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jun 21 07:36:43 2011 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Tue Jun 21 07:36:43 2011 +0000 |
tree | 51d2d880a7eff9e3f07a1b6388a8d761df1c999d | |
parent | 42e5981c26b68d20badc0fbc2ec481bf2fbf756a [diff] [blame] |
- Made second argument of f_send() prototype and of net_send() const
diff --git a/library/net.c b/library/net.c index e1d91e4..fcfe4d7 100644 --- a/library/net.c +++ b/library/net.c
@@ -317,7 +317,7 @@ /* * Write at most 'len' characters */ -int net_send( void *ctx, unsigned char *buf, size_t len ) +int net_send( void *ctx, const unsigned char *buf, size_t len ) { int ret = write( *((int *) ctx), buf, len );