X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=linux-tests%2Fxattrtest.c;h=3a6931b962db3a7588add1e59bf06d6ce634d25d;hp=14df34ac4161d72912a628cae2fb2f99efe57abb;hb=c83e416cba6748e7a436c5df6a202349ff4d0fe2;hpb=4a96d43bb566f00596a31a41c535cabbf52d4f20 diff --git a/linux-tests/xattrtest.c b/linux-tests/xattrtest.c index 14df34a..3a6931b 100644 --- a/linux-tests/xattrtest.c +++ b/linux-tests/xattrtest.c @@ -1,10 +1,26 @@ +/* + * YAFFS: Yet another Flash File System . A NAND-flash specific file system. + * + * Copyright (C) 2002-2011 Aleph One Ltd. + * for Toby Churchill Ltd and Brightstar Engineering + * + * Created by Charles Manning + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License version 2.1 as + * published by the Free Software Foundation. + * + * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. + */ + #include #include #include #include #include #include - +#include +#include static void print_xattrib_val(const char *path, const char *name) { @@ -51,8 +67,6 @@ void basic_xattr_test(const char *mountpt) int h; int result; int val1; - int valread; - strcpy(name,mountpt); strcat(name,"/"); @@ -100,4 +114,5 @@ int simulate_power_failure; int main(int argc, char *argv[]) { basic_xattr_test("/mnt/"); + return 0; }