fix whitespace; ACK RT’s Minix-vmd stmts

This commit is contained in:
tg 2012-12-17 22:57:50 +00:00
parent 4c5d7094ef
commit ae1ec32dbc
2 changed files with 5 additions and 10 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.600 2012/12/17 22:14:24 tg Exp $'
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.601 2012/12/17 22:57:49 tg Exp $'
#-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012
@ -619,15 +619,10 @@ LynxOS)
MidnightBSD)
;;
Minix-vmd)
#XXX @RT: really?
add_cppflags -DMKSH__NO_SETEUGID
add_cppflags -DMKSH_UNEMPLOYED
add_cppflags -DMKSH_CONSERVATIVE_FDS
#XXX added from Minix3; RT didn't use this, why?
add_cppflags -DMKSH_NO_LIMITS
#XXX why the deviation from Minix3?
add_cppflags -D_MINIX_SOURCE
#XXX two copied from Minix3
oldish_ed=no-stderr-ed # no /bin/ed, maybe see below
: ${HAVE_SETLOCALE_CTYPE=0}
;;
@ -1532,7 +1527,7 @@ else
#define EXTERN
#define MKSH_INCLUDES_ONLY
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.600 2012/12/17 22:14:24 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.601 2012/12/17 22:57:49 tg Exp $");
int main(void) { printf("Hello, World!\n"); return (0); }
EOF
case $cm in

6
shf.c
View File

@ -24,7 +24,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/shf.c,v 1.51 2012/12/17 22:14:27 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/shf.c,v 1.52 2012/12/17 22:57:50 tg Exp $");
/* flags to shf_emptybuf() */
#define EB_READSW 0x01 /* about to switch to reading */
@ -490,7 +490,7 @@ shf_getse(char *buf, ssize_t bsize, struct shf *shf)
return (NULL);
/* save room for NUL */
--bsize;
--bsize;
do {
if (shf->rnleft == 0) {
if (shf_fillbuf(shf) == EOF)
@ -722,7 +722,7 @@ shf_snprintf(char *buf, ssize_t bsize, const char *fmt, ...)
n = shf_vfprintf(&shf, fmt, args);
va_end(args);
/* NUL terminates */
shf_sclose(&shf);
shf_sclose(&shf);
return (n);
}