Source-Changes-HG archive

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

[src/trunk]: src/crypto/dist/ipsec-tools/src/racoon Style.



details:   https://anonhg.NetBSD.org/src/rev/efb0d22abe4d
branches:  trunk
changeset: 322856:efb0d22abe4d
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun May 20 06:15:45 2018 +0000

description:
Style.

diffstat:

 crypto/dist/ipsec-tools/src/racoon/vmbuf.c |  21 ++++++++-------------
 crypto/dist/ipsec-tools/src/racoon/vmbuf.h |   8 ++++----
 2 files changed, 12 insertions(+), 17 deletions(-)

diffs (106 lines):

diff -r 26b54e29ecc5 -r efb0d22abe4d crypto/dist/ipsec-tools/src/racoon/vmbuf.c
--- a/crypto/dist/ipsec-tools/src/racoon/vmbuf.c        Sun May 20 04:00:35 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/vmbuf.c        Sun May 20 06:15:45 2018 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: vmbuf.c,v 1.4 2006/09/09 16:22:10 manu Exp $   */
+/*     $NetBSD: vmbuf.c,v 1.5 2018/05/20 06:15:45 maxv Exp $   */
 
 /*     $KAME: vmbuf.c,v 1.11 2001/11/26 16:54:29 sakane Exp $  */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -17,7 +17,7 @@
  * 3. Neither the name of the project nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -50,8 +50,7 @@
 #include "gcmalloc.h"
 
 vchar_t *
-vmalloc(size)
-       size_t size;
+vmalloc(size_t size)
 {
        vchar_t *var;
 
@@ -73,12 +72,10 @@
 }
 
 vchar_t *
-vrealloc(ptr, size)
-       vchar_t *ptr;
-       size_t size;
+vrealloc(vchar_t *ptr, size_t size)
 {
        caddr_t v;
-       
+
        if (ptr != NULL) {
                if (ptr->l == 0) {
                        (void)vfree(ptr);
@@ -103,8 +100,7 @@
 }
 
 void
-vfree(var)
-       vchar_t *var;
+vfree(vchar_t *var)
 {
        if (var == NULL)
                return;
@@ -118,8 +114,7 @@
 }
 
 vchar_t *
-vdup(src)
-       vchar_t *src;
+vdup(vchar_t *src)
 {
        vchar_t *new;
 
diff -r 26b54e29ecc5 -r efb0d22abe4d crypto/dist/ipsec-tools/src/racoon/vmbuf.h
--- a/crypto/dist/ipsec-tools/src/racoon/vmbuf.h        Sun May 20 04:00:35 2018 +0000
+++ b/crypto/dist/ipsec-tools/src/racoon/vmbuf.h        Sun May 20 06:15:45 2018 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: vmbuf.h,v 1.4 2006/09/09 16:22:10 manu Exp $   */
+/*     $NetBSD: vmbuf.h,v 1.5 2018/05/20 06:15:45 maxv Exp $   */
 
 /* Id: vmbuf.h,v 1.4 2005/10/30 10:28:44 vanhu Exp */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:
@@ -17,7 +17,7 @@
  * 3. Neither the name of the project nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -62,7 +62,7 @@
 
 #if defined(__APPLE__) && defined(__MACH__)
 /* vfree is already defined in Apple's system libraries */
-#define vfree   vmbuf_free
+#define vfree  vmbuf_free
 #endif
 
 extern vchar_t *vmalloc __P((size_t));



Home | Main Index | Thread Index | Old Index