aboutsummaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-12-07 03:32:37 +0000
committerBrian Feldman <green@FreeBSD.org>1999-12-07 03:32:37 +0000
commit67f80d12afcd5fb97f229b4bcf7de48a0cf8db0c (patch)
tree4d0611051a3955db908d9a7d77535d4435d80c99 /bin/dd
parente669d2d7ed890d7428bb775225ef2a620c9821ad (diff)
downloadsrc-67f80d12afcd5fb97f229b4bcf7de48a0cf8db0c.tar.gz
src-67f80d12afcd5fb97f229b4bcf7de48a0cf8db0c.zip
Notes
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/Makefile2
-rw-r--r--bin/dd/args.c10
2 files changed, 8 insertions, 4 deletions
diff --git a/bin/dd/Makefile b/bin/dd/Makefile
index cd6156d7ebab..0cbd23895879 100644
--- a/bin/dd/Makefile
+++ b/bin/dd/Makefile
@@ -4,4 +4,6 @@
PROG= dd
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
+MAINTAINER= green@FreeBSD.org
+
.include <bsd.prog.mk>
diff --git a/bin/dd/args.c b/bin/dd/args.c
index c3c6d049d627..19db0addb3ea 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -71,7 +71,7 @@ static quad_t get_num __P((char *));
static off_t get_offset __P((char *));
static const struct arg {
- char *name;
+ const char *name;
void (*f) __P((char *));
u_int set, noset;
} args[] = {
@@ -173,8 +173,9 @@ static int
c_arg(a, b)
const void *a, *b;
{
+ typedef const struct arg *c_arg_p;
- return (strcmp(((struct arg *)a)->name, ((struct arg *)b)->name));
+ return (strcmp(((c_arg_p)a)->name, ((c_arg_p)b)->name));
}
static void
@@ -284,7 +285,7 @@ f_skip(arg)
}
static const struct conv {
- char *name;
+ const char *name;
u_int set, noset;
const u_char *ctab;
} clist[] = {
@@ -330,8 +331,9 @@ static int
c_conv(a, b)
const void *a, *b;
{
+ typedef const struct conv *c_conv_p;
- return (strcmp(((struct conv *)a)->name, ((struct conv *)b)->name));
+ return (strcmp(((c_conv_p)a)->name, ((c_conv_p)b)->name));
}
/*