summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-10-31 19:41:36 +0000
committerotto <otto@openbsd.org>2007-10-31 19:41:36 +0000
commit7bece31903e54b66198bf44bf54e07d1322b61d1 (patch)
treec95b8bf5af1682a782beb26def13a2720b6e923d
parentPull from master repo, commit by gmcgarry: (diff)
downloadwireguard-openbsd-7bece31903e54b66198bf44bf54e07d1322b61d1.tar.xz
wireguard-openbsd-7bece31903e54b66198bf44bf54e07d1322b61d1.zip
Pull from master repo, commit by gmcgarry:
Reset the sue to UCHAR if using CHAR_UNSIGNED. Fixes warnings on powerpc.
-rw-r--r--usr.bin/pcc/ccom/pftn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/pcc/ccom/pftn.c b/usr.bin/pcc/ccom/pftn.c
index 88ae5dac63e..db142c343a8 100644
--- a/usr.bin/pcc/ccom/pftn.c
+++ b/usr.bin/pcc/ccom/pftn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pftn.c,v 1.5 2007/10/20 09:58:00 otto Exp $ */
+/* $OpenBSD: pftn.c,v 1.6 2007/10/31 19:41:36 otto Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -1167,6 +1167,7 @@ strend(char *str)
tmpalloc(sizeof(union dimfun)), MKSUE(CHAR));
#ifdef CHAR_UNSIGNED
p->n_type = UCHAR+ARY;
+ p->n_sue = MKSUE(UCHAR);
#endif
/* length calculation, used only for sizeof */
for (i = 0, c = str; *c; ) {