From 5dbb3ba1a9043b2199364c869d25a02d9d369ada Mon Sep 17 00:00:00 2001 From: guenther Date: Mon, 14 Jul 2014 06:00:22 +0000 Subject: [PATCH] Constipate st_hash() --- bin/pax/extern.h | 4 ++-- bin/pax/tables.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/pax/extern.h b/bin/pax/extern.h index 0fe50d61ce6..1a73d45a44a 100644 --- a/bin/pax/extern.h +++ b/bin/pax/extern.h @@ -1,4 +1,4 @@ -/* $OpenBSD: extern.h,v 1.41 2014/05/23 19:47:49 guenther Exp $ */ +/* $OpenBSD: extern.h,v 1.42 2014/07/14 06:00:22 guenther Exp $ */ /* $NetBSD: extern.h,v 1.5 1996/03/26 23:54:16 mrg Exp $ */ /*- @@ -274,7 +274,7 @@ int get_atdir(dev_t, ino_t, time_t *, time_t *); int dir_start(void); void add_dir(char *, struct stat *, int); void proc_dir(int _in_sig); -u_int st_hash(char *, int, int); +u_int st_hash(const char *, int, int); /* * tar.c diff --git a/bin/pax/tables.c b/bin/pax/tables.c index fb9f028e5fb..4730c309aa0 100644 --- a/bin/pax/tables.c +++ b/bin/pax/tables.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tables.c,v 1.35 2014/07/14 05:58:19 guenther Exp $ */ +/* $OpenBSD: tables.c,v 1.36 2014/07/14 06:00:22 guenther Exp $ */ /* $NetBSD: tables.c,v 1.4 1995/03/21 09:07:45 cgd Exp $ */ /*- @@ -1223,11 +1223,11 @@ proc_dir(int in_sig) */ u_int -st_hash(char *name, int len, int tabsz) +st_hash(const char *name, int len, int tabsz) { - char *pt; + const char *pt; char *dest; - char *end; + const char *end; int i; u_int key = 0; int steps; -- 2.20.1