X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fupdate.c;h=4002844ffad64594876f728f2837e219ce735495;hb=825b72c52bb82523627f880b49d4d9105c4d7b2e;hp=211efa8a026b060cab9754f8eb45309bd27f340a;hpb=8ae9f94ce2551752c5b8442ca34d320857c15c16;p=chaz%2Ftar diff --git a/src/update.c b/src/update.c index 211efa8..4002844 100644 --- a/src/update.c +++ b/src/update.c @@ -30,7 +30,7 @@ extern union block *current_block; /* We've hit the end of the old stuff, and its time to start writing new stuff to the tape. This involves seeking back one record and re-writing the current record (which has been changed). */ -int time_to_start_writing = 0; +int time_to_start_writing; /* Pointer to where we started to write in the first record we write out. This is used if we can't backspace the output and have to null out the @@ -72,8 +72,7 @@ append_file (char *path) buffer_size = bytes_left; status = buffer_size % BLOCKSIZE; if (status) - memset (start->buffer + bytes_left, 0, - (size_t) (BLOCKSIZE - status)); + memset (start->buffer + bytes_left, 0, BLOCKSIZE - status); } status = safe_read (handle, start->buffer, buffer_size); @@ -188,7 +187,7 @@ update_archive (void) while (path = name_from_list (), path) { - if (excluded_pathname (excluded, path)) + if (excluded_name (path)) continue; if (interactive_option && !confirm ("add", path)) continue;