The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Lars Brinkhoff <lars@nocrew.org>
Cc: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: [TUHS] Re: Extracting files from various old dump/restore tapes
Date: Wed, 14 Sep 2022 23:33:25 +0200	[thread overview]
Message-ID: <20220914213325.wqdkdocq6lajjubw@lug-owl.de> (raw)
In-Reply-To: <7wsfkt4zjr.fsf@junk.nocrew.org>

[-- Attachment #1: Type: text/plain, Size: 1407 bytes --]

On Wed, 2022-09-14 17:48:56 +0000, Lars Brinkhoff <lars@nocrew.org> wrote:
> Lars Brinkhoff wrote:
> > In the end I decided to roll my own rather than port an old version of
> > restore forward and possibly merge in a few other versions.
> 
> Now available from here:
> 
> https://github.com/larsbrinkhoff/tools-for-unusual-tape-formats

Here's some stuff to build it, at least on my side.

  * -Ilibword does not exist
  * Seems `classify-tape.c` got renamed to `classify.c`
  * read_32bits_l() is unused and produces a warning

Thanks! I'll include that into my autobuilder.

MfG, JBG



diff --git a/Makefile b/Makefile
index fca9d3c..ae61913 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 
-CFLAGS = -g -W -Wall -Ilibword
+CFLAGS = -g -W -Wall
 
 TOOLS =	cpio classify restore
 
@@ -8,7 +8,7 @@ all: $(TOOLS)
 clean:
 	rm -f $(TOOLS) *.o
 
-classify: classify-tape.o tape-image.o
+classify: classify.o tape-image.o
 	$(CC) $(CFLAGS) $^ -o $@
 
 cpio: cpio.o mkdirs.o
diff --git a/classify.c b/classify.c
index 8f81213..2843164 100644
--- a/classify.c
+++ b/classify.c
@@ -43,12 +43,6 @@ read_16bits_l (uint8_t *start)
   return start[0] | (start[1] << 8);
 }
 
-static uint32_t
-read_32bits_l (uint8_t *start)
-{
-  return read_16bits_l (start) | (read_16bits_l (start + 2) << 16);
-}
-
 static word_t
 read_36bits (uint8_t *x)
 {

-- 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

  reply	other threads:[~2022-09-14 21:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-22 15:35 [TUHS] " Lars Brinkhoff
2022-08-22 16:27 ` [TUHS] " Warner Losh
2022-08-22 16:53   ` Bakul Shah
2022-08-22 16:56     ` Warner Losh
2022-08-23  5:55   ` Lars Brinkhoff
2022-08-23 13:02     ` Warner Losh
2022-09-09  5:51   ` Lars Brinkhoff
2022-09-14 17:48     ` Lars Brinkhoff
2022-09-14 21:33       ` Jan-Benedict Glaw [this message]
2022-09-15  5:45         ` Lars Brinkhoff

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220914213325.wqdkdocq6lajjubw@lug-owl.de \
    --to=jbglaw@lug-owl.de \
    --cc=lars@nocrew.org \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).