summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-07-14 06:00:22 +0000
committerguenther <guenther@openbsd.org>2014-07-14 06:00:22 +0000
commit5dbb3ba1a9043b2199364c869d25a02d9d369ada (patch)
tree0a2c27a4b59ca0862f97e280a4ebf099b04d7b65
parentOops: resurrect cached file that wasn't ripe for deletion (diff)
downloadwireguard-openbsd-5dbb3ba1a9043b2199364c869d25a02d9d369ada.tar.xz
wireguard-openbsd-5dbb3ba1a9043b2199364c869d25a02d9d369ada.zip
Constipate st_hash()
-rw-r--r--bin/pax/extern.h4
-rw-r--r--bin/pax/tables.c8
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;