X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fwim.c;h=99a8c70072e89c1f1a6b563bc88ba229f09ed7cf;hp=f9a6851c0c4a4a18dbb3c2d2ab6e9ab7e2df9c9a;hb=6b48d458662451251f506fcf7e275b4250a31cd0;hpb=8e4a9a0129dabaddef33ee0a99f7f8b221bdf483 diff --git a/src/wim.c b/src/wim.c index f9a6851c..99a8c700 100644 --- a/src/wim.c +++ b/src/wim.c @@ -1,24 +1,27 @@ /* * wim.c - * - * + */ + +/* * Copyright (C) 2010 Carl Thijssen * Copyright (C) 2012 Eric Biggers * * wimlib - Library for working with WIM files * - * This library 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 2.1 of the License, or (at your option) any - * later version. + * This file is part of wimlib, a library for working with WIM files. + * + * wimlib 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 2.1 of the License, or (at your option) + * any later version. * - * 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 Lesser General Public License for more details. + * 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 Lesser General Public License for more + * details. * - * You should have received a copy of the GNU Lesser General Public License along - * with this library; if not, write to the Free Software Foundation, Inc., 59 - * Temple Place, Suite 330, Boston, MA 02111-1307 USA + * You should have received a copy of the GNU Lesser General Public License + * along with wimlib; if not, see http://www.gnu.org/licenses/. */ #include "wimlib_internal.h" @@ -50,8 +53,8 @@ WIMStruct *new_wim_struct() w = CALLOC(1, sizeof(WIMStruct)); if (!w) return NULL; - w->link_type = WIM_LINK_TYPE_HARD; - w->current_image = WIM_NO_IMAGE; + w->link_type = WIM_LINK_TYPE_NONE; + w->current_image = WIM_NO_IMAGE; return w; } @@ -63,7 +66,7 @@ WIMStruct *new_wim_struct() */ int for_image(WIMStruct *w, int image, int (*visitor)(WIMStruct *)) { - int ret; + int ret = 0; int i; int image_count;