On 5/11/2016 7:48 AM, Diego Biurrun wrote:
> ---
> libavutil/blowfish-test.c | 5 ++---
> libavutil/xtea-test.c | 6 ++----
> 2 files changed, 4 insertions(+), 7 deletions(-)
>
> diff --git a/libavutil/blowfish-test.c b/libavutil/blowfish-test.c
> index 4281ca2..0c1c751 100644
> --- a/libavutil/blowfish-test.c
> +++ b/libavutil/blowfish-test.c
> @@ -16,13 +16,12 @@
> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
> USA
> */
>
> -#include <stdint.h>
> +#include "blowfish.c"
> +
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> -#include "blowfish.h"
> -
> #define NUM_VARIABLE_KEY_TESTS 34
>
> /* plaintext bytes -- left halves */
> diff --git a/libavutil/xtea-test.c b/libavutil/xtea-test.c
> index 9844576..ed2d505 100644
> --- a/libavutil/xtea-test.c
> +++ b/libavutil/xtea-test.c
> @@ -16,14 +16,12 @@
> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
> USA
> */
>
> -#include <stdint.h>
> +#include "xtea.c"
> +
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
>
> -#include "intreadwrite.h"
> -#include "xtea.h"
> -
> #define XTEA_NUM_TESTS 6
>
> static const uint8_t xtea_test_key[XTEA_NUM_TESTS][16] = {
>
Why not just change the tests to use the corresponding alloc() functions
instead?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel