From: Neal Andrew Crook Date: Thu, 7 Jul 2016 21:57:24 +0000 (+0100) Subject: janitorial/white-space/dos-line-end cleanup X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=db0b52a3a7bef44e494e7da2e248b6df48fd6b97;p=FUZIX.git janitorial/white-space/dos-line-end cleanup --- diff --git a/Applications/V7/.gitignore b/Applications/V7/.gitignore index 2c167a48..6b2838f8 100644 --- a/Applications/V7/.gitignore +++ b/Applications/V7/.gitignore @@ -28,8 +28,8 @@ test time tsort wall -# from cmd/sh -sh +# from cmd/sh/ +cmd/sh/sh # from games/ arithmetic backgammon diff --git a/Applications/rpilot-1.4.2/.gitignore b/Applications/rpilot-1.4.2/.gitignore new file mode 100644 index 00000000..8f256920 --- /dev/null +++ b/Applications/rpilot-1.4.2/.gitignore @@ -0,0 +1 @@ +rpilot diff --git a/Library/libs/fputs.c b/Library/libs/fputs.c index 6e3f2a24..3028bad2 100644 --- a/Library/libs/fputs.c +++ b/Library/libs/fputs.c @@ -3,7 +3,7 @@ int fputs(const void *str, FILE * fp) { register int n = 0; - char *s = str; + const char *s = str; while (*s) { if (putc(*s++, fp) == EOF) diff --git a/Library/libs/strchr.c b/Library/libs/strchr.c index 0b0d2156..d38a1850 100644 --- a/Library/libs/strchr.c +++ b/Library/libs/strchr.c @@ -1,17 +1,17 @@ -/* string.c - * Copyright (C) 1995,1996 Robert de Bath - * This file is part of the Linux-8086 C library and is distributed - * under the GNU Library General Public License. - */ - -#include - -/* FIXME: asm version ?? */ -/********************** Function strchr ************************************/ -char *strchr(const char *s, int c) +/* string.c + * Copyright (C) 1995,1996 Robert de Bath + * This file is part of the Linux-8086 C library and is distributed + * under the GNU Library General Public License. + */ + +#include + +/* FIXME: asm version ?? */ +/********************** Function strchr ************************************/ +char *strchr(const char *s, int c) { register char ch; - + for (;;) { if ((ch = *s) == c) return s; diff --git a/Library/libs/strrchr.c b/Library/libs/strrchr.c index a8c3823e..223f1669 100644 --- a/Library/libs/strrchr.c +++ b/Library/libs/strrchr.c @@ -1,17 +1,17 @@ -/* string.c - * Copyright (C) 1995,1996 Robert de Bath - * This file is part of the Linux-8086 C library and is distributed - * under the GNU Library General Public License. - */ - -#include - -/********************** Function strrchr ************************************/ -char *strrchr(const char *s, int c) +/* string.c + * Copyright (C) 1995,1996 Robert de Bath + * This file is part of the Linux-8086 C library and is distributed + * under the GNU Library General Public License. + */ + +#include + +/********************** Function strrchr ************************************/ +char *strrchr(const char *s, int c) { register const char *p = s + strlen(s); - - /* For null it's just like strlen */ + + /* For null it's just like strlen */ if (c == '\0') return p; while (p != s) {