From 150a35a02d5df7c489579bfbb0d6396a8c58108f Mon Sep 17 00:00:00 2001 From: tg Date: Tue, 23 Feb 2010 18:13:04 +0000 Subject: [PATCH] =?UTF-8?q?x=5Fbind=20cannot=20have=20the=20nonnull=20attr?= =?UTF-8?q?ibute=20cought=20by=20Frank=20=E2=80=9Censtein=E2=80=9D=20Terbe?= =?UTF-8?q?ck=20=C2=ABft:#grml=C2=BB=20(efftee),=2010x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check.t | 4 ++-- edit.c | 6 +----- funcs.c | 8 +------- sh.h | 9 +++++++-- 4 files changed, 11 insertions(+), 16 deletions(-) diff --git a/check.t b/check.t index 7ca861b..9fd7113 100644 --- a/check.t +++ b/check.t @@ -1,4 +1,4 @@ -# $MirOS: src/bin/mksh/check.t,v 1.361 2010/02/18 17:31:22 tg Exp $ +# $MirOS: src/bin/mksh/check.t,v 1.362 2010/02/23 18:13:00 tg Exp $ # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ @@ -25,7 +25,7 @@ # http://www.research.att.com/~gsf/public/ifs.sh expected-stdout: - @(#)MIRBSD KSH R39 2010/02/18 + @(#)MIRBSD KSH R39 2010/02/23 description: Check version of shell. stdin: diff --git a/edit.c b/edit.c index 4188cbb..8cce196 100644 --- a/edit.c +++ b/edit.c @@ -25,7 +25,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.189 2010/01/29 09:34:26 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/edit.c,v 1.190 2010/02/23 18:13:02 tg Exp $"); /* tty driver characters we are interested in */ typedef struct { @@ -857,11 +857,7 @@ static void x_load_hist(char **); static int x_search(char *, int, int); #ifndef MKSH_SMALL static int x_search_dir(int); -int x_bind(const char *, const char *, bool, bool) -#else -int x_bind(const char *, const char *, bool) #endif - MKSH_A_NONNULL((nonnull (1, 2))); static int x_match(char *, char *); static void x_redraw(int); static void x_push(int); diff --git a/funcs.c b/funcs.c index 08351bd..4d99c4b 100644 --- a/funcs.c +++ b/funcs.c @@ -25,7 +25,7 @@ #include "sh.h" -__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.150 2010/01/28 15:18:48 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.151 2010/02/23 18:13:03 tg Exp $"); #if HAVE_KILLPG /* @@ -1683,12 +1683,6 @@ c_getopts(const char **wp) return (optc < 0 ? 1 : rv); } -#ifndef MKSH_SMALL -extern int x_bind(const char *, const char *, bool, bool); -#else -extern int x_bind(const char *, const char *, bool); -#endif - int c_bind(const char **wp) { diff --git a/sh.h b/sh.h index 7a7e4f0..7c3a601 100644 --- a/sh.h +++ b/sh.h @@ -150,9 +150,9 @@ #endif #ifdef EXTERN -__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.381 2010/02/18 17:31:23 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.382 2010/02/23 18:13:04 tg Exp $"); #endif -#define MKSH_VERSION "R39 2010/02/18" +#define MKSH_VERSION "R39 2010/02/23" #ifndef MKSH_INCLUDES_ONLY @@ -1350,6 +1350,11 @@ void afreeall(Area *); void *aresize(void *, size_t, Area *); void afree(void *, Area *); /* can take NULL */ /* edit.c */ +#ifndef MKSH_SMALL +int x_bind(const char *, const char *, bool, bool); +#else +int x_bind(const char *, const char *, bool); +#endif void x_init(void); int x_read(char *, size_t); /* eval.c */