diff options
| author | miod <> | 2015-07-19 18:29:31 +0000 |
|---|---|---|
| committer | miod <> | 2015-07-19 18:29:31 +0000 |
| commit | a24b14b6bf2c04501ea84182a52caa5bf2ae7635 (patch) | |
| tree | 7d71f138b5b5706a448942547e5154bd651f174c /src/lib/libcrypto/bio/bf_lbuf.c | |
| parent | 7fa3eebdfe6c452f7df52bcda90cfe95b4b1e6ce (diff) | |
| download | openbsd-a24b14b6bf2c04501ea84182a52caa5bf2ae7635.tar.gz openbsd-a24b14b6bf2c04501ea84182a52caa5bf2ae7635.tar.bz2 openbsd-a24b14b6bf2c04501ea84182a52caa5bf2ae7635.zip | |
Drop stupid (int) casts for the arguments of malloc() and friends. This is
not 16-bit MS-DOS anymore.
ok bcook@ tedu@
Diffstat (limited to 'src/lib/libcrypto/bio/bf_lbuf.c')
| -rw-r--r-- | src/lib/libcrypto/bio/bf_lbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bf_lbuf.c b/src/lib/libcrypto/bio/bf_lbuf.c index e90b7f239f..7978fdb347 100644 --- a/src/lib/libcrypto/bio/bf_lbuf.c +++ b/src/lib/libcrypto/bio/bf_lbuf.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bf_lbuf.c,v 1.12 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: bf_lbuf.c,v 1.13 2015/07/19 18:29:31 miod Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -280,7 +280,7 @@ linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 280 | obs = (int)num; | 280 | obs = (int)num; |
| 281 | p = ctx->obuf; | 281 | p = ctx->obuf; |
| 282 | if ((obs > DEFAULT_LINEBUFFER_SIZE) && (obs != ctx->obuf_size)) { | 282 | if ((obs > DEFAULT_LINEBUFFER_SIZE) && (obs != ctx->obuf_size)) { |
| 283 | p = malloc((int)num); | 283 | p = malloc(num); |
| 284 | if (p == NULL) | 284 | if (p == NULL) |
| 285 | goto malloc_error; | 285 | goto malloc_error; |
| 286 | } | 286 | } |
