X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Funlink.c;h=817ab4a5ff300c8fe6668d8e61b5413c2df1afbc;hb=f6edb92580aa886a2a0189463c19189a050dc62d;hp=2af6f9957b2887eea74b9fe0b394207d60937e32;hpb=e21d54e8cd3d8026ad56f90cc6bde831106c2cb9;p=chaz%2Ftar diff --git a/src/unlink.c b/src/unlink.c index 2af6f99..817ab4a 100644 --- a/src/unlink.c +++ b/src/unlink.c @@ -1,4 +1,4 @@ -/* This file is part of GNU tar. +/* This file is part of GNU tar. Copyright (C) 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it @@ -42,7 +42,7 @@ static struct deferred_unlink *dunlink_avail; size_t deferred_unlink_delay = 0; static struct deferred_unlink * -dunlink_alloc () +dunlink_alloc (void) { struct deferred_unlink *p; if (dunlink_avail) @@ -116,7 +116,7 @@ flush_deferred_unlinks (bool force) { prev = p; p = next; - } + } } if (!dunlink_head) dunlink_tail = NULL; @@ -142,13 +142,13 @@ queue_deferred_unlink (const char *name, bool is_dir) if (dunlink_head && records_written > dunlink_head->records_written + deferred_unlink_delay) flush_deferred_unlinks (false); - + p = dunlink_alloc (); p->next = NULL; p->file_name = normalize_filename (name); p->is_dir = is_dir; p->records_written = records_written; - + if (dunlink_tail) dunlink_tail->next = p; else