Source-Changes-HG archive

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

[src/trunk]: src/sys/lib/libsa KNR, removing ugly 'unsigned' variables.



details:   https://anonhg.NetBSD.org/src/rev/f6f71ad3269f
branches:  trunk
changeset: 542559:f6f71ad3269f
user:      dsl <dsl%NetBSD.org@localhost>
date:      Sat Feb 01 14:57:02 2003 +0000

description:
KNR, removing ugly 'unsigned' variables.
Probably should be size_t, but now matched prototype.
(mainly agreed with christos - he wanted size_t....)

diffstat:

 sys/lib/libsa/alloc.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 4bf28f7fa40e -r f6f71ad3269f sys/lib/libsa/alloc.c
--- a/sys/lib/libsa/alloc.c     Sat Feb 01 14:54:22 2003 +0000
+++ b/sys/lib/libsa/alloc.c     Sat Feb 01 14:57:02 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: alloc.c,v 1.15 2000/03/30 12:19:47 augustss Exp $      */
+/*     $NetBSD: alloc.c,v 1.16 2003/02/01 14:57:02 dsl Exp $   */
 
 /*
  * Copyright (c) 1997 Christopher G. Demetriou.  All rights reserved.
@@ -114,8 +114,7 @@
 
 #ifdef HEAP_VARIABLE
 static char *top, *heapstart, *heaplimit;
-void setheap(start, limit)
-void *start, *limit;
+void setheap(void *start, void *limit)
 {
     heapstart = top = start;
     heaplimit = limit;
@@ -131,8 +130,7 @@
 #endif /* HEAP_VARIABLE */
 
 void *
-alloc(size)
-       unsigned size;
+alloc(u_int size)
 {
        struct fl **f = &freelist, **bestf = NULL;
 #ifndef ALLOC_FIRST_FIT
@@ -209,9 +207,7 @@
 }
 
 void
-free(ptr, size)
-       void *ptr;
-       unsigned size; /* only for consistence check */
+free(void *ptr, u_int size)
 {
        struct fl *f =
            (struct fl *)((char*)ptr - ALIGN(sizeof(unsigned)));



Home | Main Index | Thread Index | Old Index