X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Fpathlist.c;h=b0bd820bd1fc61ad9d3820247c31b1475592dfea;hb=2b14c2bfd6d0a7a17433dd8529cfc8b7d969c4b0;hp=c366ed7f370c45e45ea11093875d322026a2a1fa;hpb=864db0e0929d60b33b8b0df35ccb68d43e7f8684;p=wimlib diff --git a/src/pathlist.c b/src/pathlist.c index c366ed7f..b0bd820b 100644 --- a/src/pathlist.c +++ b/src/pathlist.c @@ -7,20 +7,18 @@ /* * Copyright (C) 2013 Eric Biggers * - * This file is part of wimlib, a library for working with WIM files. + * This file is free software; you can redistribute it and/or modify it under + * the terms of the GNU Lesser General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) any + * later version. * - * wimlib is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License as published by the Free - * Software Foundation; either version 3 of the License, or (at your option) - * any later version. - * - * wimlib 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 General Public License for more + * This file 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 Lesser General Public License for more * details. * - * You should have received a copy of the GNU General Public License - * along with wimlib; if not, see http://www.gnu.org/licenses/. + * You should have received a copy of the GNU Lesser General Public License + * along with this file; if not, see http://www.gnu.org/licenses/. */ #ifdef HAVE_CONFIG_H @@ -40,7 +38,7 @@ read_path_list_file(const tchar *listfile, .name = T(""), .strings = &paths, }; - tchar *buf; + void *buf; int ret; ret = load_text_file(listfile, &buf, &tmp, 1, NULL); @@ -49,6 +47,6 @@ read_path_list_file(const tchar *listfile, *paths_ret = paths.strings; *num_paths_ret = paths.num_strings; - *mem_ret = (void *)buf; + *mem_ret = buf; return 0; }