Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/stdio space before star



details:   https://anonhg.NetBSD.org/src/rev/446bde3174e9
branches:  trunk
changeset: 1022223:446bde3174e9
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 10 07:50:20 2021 +0000

description:
space before star

diffstat:

 tests/lib/libc/stdio/h_intr.c |  32 ++++++++++++++++----------------
 1 files changed, 16 insertions(+), 16 deletions(-)

diffs (110 lines):

diff -r d069288b5905 -r 446bde3174e9 tests/lib/libc/stdio/h_intr.c
--- a/tests/lib/libc/stdio/h_intr.c     Sat Jul 10 06:53:40 2021 +0000
+++ b/tests/lib/libc/stdio/h_intr.c     Sat Jul 10 07:50:20 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_intr.c,v 1.4 2021/07/09 20:00:26 kre Exp $   */
+/*     $NetBSD: h_intr.c,v 1.5 2021/07/10 07:50:20 christos Exp $      */
 
 /**
  * Test of interrupted I/O to popen()ed commands.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: h_intr.c,v 1.4 2021/07/09 20:00:26 kre Exp $");
+__RCSID("$NetBSD: h_intr.c,v 1.5 2021/07/10 07:50:20 christos Exp $");
 
 #include <time.h>
 #include <err.h>
@@ -48,12 +48,12 @@
 static sig_t xsignal(int signo, sig_t handler);
 static void alarmtimer(int wait);
 static void pr_star(int signo);
-static int do_opts(int argc, char* argv[]);
+static int do_opts(int argc, char *argv[]);
 static void usage(FILE *fp);
 
 /* Globals */
 static struct options {
-       const char* cmd;        /* cmd to run (which must read from stdin) */
+       const char *cmd;        /* cmd to run (which must read from stdin) */
        size_t bsize;           /* block size to use */
        size_t asize;           /* alt. stdio buffer size */
        int btype;              /* buffering type: _IONBF, ... */
@@ -74,8 +74,8 @@
 
 static void (*alarm_fn)(int);                          /* real/dummy alarm fn. */
 static int (*sintr_fn)(int, int);                      /*  " siginterrupt fn. */
-static ssize_t (*rd_fn)(FILE*, void*, size_t);         /* read fn. */
-static ssize_t (*wr_fn)(FILE*, const void*, size_t);   /* write fn. */
+static ssize_t (*rd_fn)(FILE *, void *, size_t);       /* read fn. */
+static ssize_t (*wr_fn)(FILE *, const void *, size_t); /* write fn. */
 
 enum {
        MB = 1024 * 1024,       /* a megabyte */
@@ -91,7 +91,7 @@
  * M A I N
  */
 int
-main(int argc, char* argv[])
+main(int argc, char *argv[])
 {
        int i, rc = EXIT_SUCCESS;
 
@@ -205,9 +205,9 @@
  * maxread - syscall version
  */
 ssize_t
-smaxread(FILE* fp, void* buf, size_t size)
+smaxread(FILE* fp, void *buf, size_t size)
 {
-       char* p = buf;
+       char *p = buf;
        ssize_t nrd = 0;
        ssize_t n;
 
@@ -231,9 +231,9 @@
  * maxread - stdio version
  */
 ssize_t
-maxread(FILE* fp, void* buf, size_t size)
+maxread(FILE* fp, void *buf, size_t size)
 {
-       char* p = buf;
+       char *p = buf;
        ssize_t nrd = 0;
        size_t n;
 
@@ -262,9 +262,9 @@
  * maxwrite - syscall version
  */
 ssize_t
-smaxwrite(FILE* fp, const void* buf, size_t size)
+smaxwrite(FILE* fp, const void *buf, size_t size)
 {
-       const char* p = buf;
+       const char *p = buf;
        ssize_t nwr = 0;
        ssize_t n;
 
@@ -287,9 +287,9 @@
  * maxwrite - stdio version (warning: substrate may be buggy)
  */
 ssize_t
-maxwrite(FILE* fp, const void* buf, size_t size)
+maxwrite(FILE* fp, const void *buf, size_t size)
 {
-       const char* p = buf;
+       const char *p = buf;
        ssize_t nwr = 0;
        size_t n;
 
@@ -412,7 +412,7 @@
 }
 
 static int
-str2btype(const char* s)
+str2btype(const char *s)
 {
        for (size_t i = 0; i < __arraycount(btypes); i++)
                if (strcmp(btypes[i].name, s) == 0)



Home | Main Index | Thread Index | Old Index