X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Funit-tests%2Ftest-memfuncs.c;h=07c33a90eff324a61714991810a62093243072a1;hb=5c62590ba739d5960019890fe458e9b326b51993;hp=a2b86bbd825a35c59a56ee68e8bc5726d8cc0a30;hpb=28f473c41df72b278eaf9784c29c2b8fa2cbe06a;p=mono.git diff --git a/mono/unit-tests/test-memfuncs.c b/mono/unit-tests/test-memfuncs.c index a2b86bbd825..07c33a90eff 100644 --- a/mono/unit-tests/test-memfuncs.c +++ b/mono/unit-tests/test-memfuncs.c @@ -3,18 +3,7 @@ * * Copyright (C) 2013 Xamarin Inc * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Library General Public - * License 2.0 as published by the Free Software Foundation; - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU Library General Public - * License 2.0 along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ #include "config.h" @@ -40,9 +29,9 @@ int main (void) { - unsigned char *random_mem = malloc (POOL_SIZE); - unsigned char *reference = malloc (POOL_SIZE); - unsigned char *playground = malloc (POOL_SIZE); + unsigned char *random_mem = (unsigned char *)malloc (POOL_SIZE); + unsigned char *reference = (unsigned char *)malloc (POOL_SIZE); + unsigned char *playground = (unsigned char *)malloc (POOL_SIZE); long *long_random_mem; int i, offset, size, src_offset, dest_offset;