mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
Localize it
This commit is contained in:
parent
3048c51216
commit
da3b2e6612
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12809
@ -73,6 +73,7 @@ static char sccsid[] = "@(#)msgs.c 8.1 (Berkeley) 6/6/93";
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <locale.h>
|
||||
#include <pwd.h>
|
||||
#include <setjmp.h>
|
||||
#include <termios.h>
|
||||
@ -160,7 +161,7 @@ int argc; char *argv[];
|
||||
#ifdef UNBUFFERED
|
||||
setbuf(stdout, NULL);
|
||||
#endif
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
time(&t);
|
||||
setuid(uid = getuid());
|
||||
@ -854,9 +855,9 @@ FILE *infile;
|
||||
|
||||
char *
|
||||
nxtfld(s)
|
||||
char *s;
|
||||
unsigned char *s;
|
||||
{
|
||||
if (*s) while (*s && *s > ' ') s++; /* skip over this field */
|
||||
if (*s) while (*s && *s <= ' ') s++; /* find start of next field */
|
||||
if (*s) while (*s && !isspace(*s)) s++; /* skip over this field */
|
||||
if (*s) while (*s && isspace(*s)) s++; /* find start of next field */
|
||||
return (s);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user