Bernhard Fischer says: use xmalloc() instead of malloc()
[oweals/busybox.git] / archival / libunarchive / seek_by_jump.c
index efad97fc45b08341629b255909092a97b9669091..578870d9b3c7d70d87fe0a13cc00f04f0d5de26b 100644 (file)
 extern void seek_by_jump(const archive_handle_t *archive_handle, const unsigned int amount)
 {
        if (lseek(archive_handle->src_fd, (off_t) amount, SEEK_CUR) == (off_t) -1) {
-#if CONFIG_FEATURE_UNARCHIVE_TAPE
+#ifdef CONFIG_FEATURE_UNARCHIVE_TAPE
                if (errno == ESPIPE) {
                        seek_by_char(archive_handle, amount);
                } else
 #endif
-                       perror_msg_and_die("Seek failure");
+                       bb_perror_msg_and_die("Seek failure");
        }
 }