return (bytes);
if (bytes < 512) { /* Short read or EOF. */
/* Try requesting just one byte and see what happens. */
- h = __archive_read_ahead(a, 1, &bytes);
+ (void)__archive_read_ahead(a, 1, &bytes);
if (bytes == 0) {
/*
* The archive ends at a 512-byte boundary but
struct archive_entry *entry, char *attr)
{
size_t attr_length, l, line_length;
- char *line, *p;
+ char *p;
char *key, *value;
int err, err2;
/* Parse decimal length field at start of line. */
line_length = 0;
l = attr_length;
- line = p = attr; /* Record start of line. */
+ p = attr; /* Record start of line. */
while (l>0) {
if (*p == ' ') {
p++;
/* Ensure pax_entry buffer is big enough. */
if (tar->pax_entry_length <= length) {
- wchar_t *old_entry = tar->pax_entry;
+ wchar_t *old_entry;
if (tar->pax_entry_length <= 0)
tar->pax_entry_length = 1024;
src += n;
length -= n;
}
- *dest++ = L'\0';
+ *dest = L'\0';
return (tar->pax_entry);
}