aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2004-02-05 23:16:31 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2004-02-05 23:16:31 +0000
commit2e454f23faa1040e80182e324d1562560faeb957 (patch)
treea5d0cb5b785f8bf9a6fa923a7909cc2ecf6264cb
parent88b8d48716b2c520d992a423aa9c57e19b09baef (diff)
Fixes from 31-Jul-2003; make it 8-bit clean.
Forgotten by: ru (for far too long)
Notes
Notes: svn path=/vendor/one-true-awk/dist/; revision=125505
-rw-r--r--contrib/one-true-awk/lex.c4
-rw-r--r--contrib/one-true-awk/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/contrib/one-true-awk/lex.c b/contrib/one-true-awk/lex.c
index 39f5d4d305c2..1766d71690ce 100644
--- a/contrib/one-true-awk/lex.c
+++ b/contrib/one-true-awk/lex.c
@@ -550,9 +550,9 @@ int input(void) /* get next lexical input character */
extern char *lexprog;
if (yysptr > yysbuf)
- c = *--yysptr;
+ c = (uschar)*--yysptr;
else if (lexprog != NULL) { /* awk '...' */
- if ((c = *lexprog) != 0)
+ if ((c = (uschar)*lexprog) != 0)
lexprog++;
} else /* awk -f ... */
c = pgetc();
diff --git a/contrib/one-true-awk/main.c b/contrib/one-true-awk/main.c
index 6e6604e0cba4..5ca7c6ce011f 100644
--- a/contrib/one-true-awk/main.c
+++ b/contrib/one-true-awk/main.c
@@ -22,7 +22,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.
****************************************************************/
-const char *version = "version 20030729";
+const char *version = "version 20030731";
#define DEBUG
#include <stdio.h>