Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/stdio In newfmt() example one level of indentation ...



details:   https://anonhg.NetBSD.org/src/rev/f08b4e53d84a
branches:  trunk
changeset: 784157:f08b4e53d84a
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Jan 20 10:57:19 2013 +0000

description:
In newfmt() example one level of indentation is enough.

diffstat:

 lib/libc/stdio/printf.3 |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (32 lines):

diff -r 2aaf95d8434e -r f08b4e53d84a lib/libc/stdio/printf.3
--- a/lib/libc/stdio/printf.3   Sun Jan 20 10:12:58 2013 +0000
+++ b/lib/libc/stdio/printf.3   Sun Jan 20 10:57:19 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: printf.3,v 1.59 2013/01/19 15:25:58 uwe Exp $
+.\"    $NetBSD: printf.3,v 1.60 2013/01/20 10:57:19 uwe Exp $
 .\"
 .\" Copyright (c) 1990, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -772,14 +772,14 @@
 #include \*[Lt]stdarg.h\*[Gt]
 char *newfmt(const char *fmt, ...)
 {
-               char *p;
-               va_list ap;
-               if ((p = malloc(128)) == NULL)
-                       return (NULL);
-               va_start(ap, fmt);
-               (void) vsnprintf(p, 128, fmt, ap);
-               va_end(ap);
-               return (p);
+       char *p;
+       va_list ap;
+       if ((p = malloc(128)) == NULL)
+               return (NULL);
+       va_start(ap, fmt);
+       (void) vsnprintf(p, 128, fmt, ap);
+       va_end(ap);
+       return (p);
 }
 .Ed
 .Sh ERRORS



Home | Main Index | Thread Index | Old Index