X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fupdate.c;h=4002844ffad64594876f728f2837e219ce735495;hb=825b72c52bb82523627f880b49d4d9105c4d7b2e;hp=05c68f3e317838ade05e3cd045059244e4ea10e6;hpb=9d68ac2e944683e57baff09c1fd9b53527fb24ae;p=chaz%2Ftar diff --git a/src/update.c b/src/update.c index 05c68f3..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);