diff options
author | 2003-09-28 07:45:55 +0000 | |
---|---|---|
committer | 2003-09-28 07:45:55 +0000 | |
commit | 29cf4278c01616de1e691f27003a60f8723b6192 (patch) | |
tree | d7b1a241bd05b45e7e6ad399974a2c83f7479b2b | |
parent | Missing xfs_devpoll proto. You would think with all that HAVE_FOO (diff) | |
download | wireguard-openbsd-29cf4278c01616de1e691f27003a60f8723b6192.tar.xz wireguard-openbsd-29cf4278c01616de1e691f27003a60f8723b6192.zip |
Fix function return types. Unbreaks sparc64 compilation. Spotted by
sturm@.
ok deraadt@ sturm@ henning@
-rw-r--r-- | usr.bin/bc/bc.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/bc/bc.y b/usr.bin/bc/bc.y index 4d10be82bfb..bdab4153118 100644 --- a/usr.bin/bc/bc.y +++ b/usr.bin/bc/bc.y @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: bc.y,v 1.6 2003/09/26 19:26:16 deraadt Exp $ */ +/* $OpenBSD: bc.y,v 1.7 2003/09/28 07:45:55 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> @@ -31,7 +31,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: bc.y,v 1.6 2003/09/26 19:26:16 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: bc.y,v 1.7 2003/09/28 07:45:55 otto Exp $"; #endif /* not lint */ #include <ctype.h> @@ -79,7 +79,7 @@ static __dead void usage(void); static size_t instr_sz = 0; static struct tree *instructions = NULL; -static size_t current = 0; +static ssize_t current = 0; static int macro_char = '0'; static int reset_macro_char = '0'; static int nesting = 0; @@ -592,7 +592,7 @@ grow(void) } } -static int +static ssize_t cs(const char *str) { grow(); @@ -601,7 +601,7 @@ cs(const char *str) return current++; } -static int +static ssize_t as(const char *str) { grow(); |