Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/cd9660 ANSIfy and de-__P.



details:   https://anonhg.NetBSD.org/src/rev/582274e76c56
branches:  trunk
changeset: 582255:582274e76c56
user:      junyoung <junyoung%NetBSD.org@localhost>
date:      Wed Jun 22 17:34:30 2005 +0000

description:
ANSIfy and de-__P.

diffstat:

 sys/fs/cd9660/iso.h |  52 ++++++++++++++--------------------------------------
 1 files changed, 14 insertions(+), 38 deletions(-)

diffs (119 lines):

diff -r a0ecf3f711c8 -r 582274e76c56 sys/fs/cd9660/iso.h
--- a/sys/fs/cd9660/iso.h       Wed Jun 22 16:51:41 2005 +0000
+++ b/sys/fs/cd9660/iso.h       Wed Jun 22 17:34:30 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iso.h,v 1.4 2005/02/26 22:58:55 perry Exp $    */
+/*     $NetBSD: iso.h,v 1.5 2005/06/22 17:34:30 junyoung Exp $ */
 
 /*-
  * Copyright (c) 1994
@@ -168,43 +168,32 @@
        u_char len_au                   [ISODCL (247, 250)]; /* 723 */
 };
 
-static __inline int isonum_711 __P((u_char *)) __attribute__ ((unused));
-static __inline int isonum_712 __P((signed char *)) __attribute__ ((unused));
-static __inline uint16_t isonum_721 __P((u_char *)) __attribute__ ((unused));
-static __inline uint16_t isonum_722 __P((u_char *)) __attribute__ ((unused));
-static __inline uint16_t isonum_723 __P((u_char *)) __attribute__ ((unused));
-static __inline uint32_t isonum_731 __P((u_char *)) __attribute__ ((unused));
-static __inline uint32_t isonum_732 __P((u_char *)) __attribute__ ((unused));
-static __inline uint32_t isonum_733 __P((u_char *)) __attribute__ ((unused));
+static __inline int isonum_711(u_char *) __attribute__ ((unused));
+static __inline int isonum_712(char *) __attribute__ ((unused));
+static __inline uint16_t isonum_721(u_char *) __attribute__ ((unused));
+static __inline uint16_t isonum_722(u_char *) __attribute__ ((unused));
+static __inline uint16_t isonum_723(u_char *) __attribute__ ((unused));
+static __inline uint32_t isonum_731(u_char *) __attribute__ ((unused));
+static __inline uint32_t isonum_732(u_char *) __attribute__ ((unused));
+static __inline uint32_t isonum_733(u_char *) __attribute__ ((unused));
 
 /* 7.1.1: unsigned char */
 static __inline int
-#if __STDC__
 isonum_711(u_char *p)
-#else
-isonum_711(p)
-       u_char *p;
-#endif
 {
        return *p;
 }
 
 /* 7.1.2: signed(?) char */
 static __inline int
-#if __STDC__
-isonum_712(signed char *p)
-#else
-isonum_712(p)
-       signed char *p;
-#endif
+isonum_712(char *p)
 {
        return *p;
 }
 
 /* 7.2.1: unsigned little-endian 16-bit value.  NOT USED IN KERNEL. */
 static __inline uint16_t
-isonum_721(p)
-       u_char *p;
+isonum_721(u_char *p)
 {
 #if defined(UNALIGNED_ACCESS) && (BYTE_ORDER == LITTLE_ENDIAN)
        return *(uint16_t *)p;
@@ -215,8 +204,7 @@
 
 /* 7.2.2: unsigned big-endian 16-bit value.  NOT USED IN KERNEL. */
 static __inline uint16_t
-isonum_722(p)
-       unsigned char *p;
+isonum_722(u_char *p)
 {
 #if defined(UNALIGNED_ACCESS) && (BYTE_ORDER == BIG_ENDIAN)
        return *(uint16_t *)p;
@@ -227,12 +215,7 @@
 
 /* 7.2.3: unsigned both-endian (little, then big) 16-bit value */
 static __inline uint16_t
-#if __STDC__
 isonum_723(u_char *p)
-#else
-isonum_723(p)
-       u_char *p;
-#endif
 {
 #if defined(UNALIGNED_ACCESS) && \
     ((BYTE_ORDER == LITTLE_ENDIAN) || (BYTE_ORDER == BIG_ENDIAN))
@@ -248,8 +231,7 @@
 
 /* 7.3.1: unsigned little-endian 32-bit value.  NOT USED IN KERNEL. */
 static __inline uint32_t
-isonum_731(p)
-       u_char *p;
+isonum_731(u_char *p)
 {
 #if defined(UNALIGNED_ACCESS) && (BYTE_ORDER == LITTLE_ENDIAN)
        return *(uint32_t *)p;
@@ -260,8 +242,7 @@
 
 /* 7.3.2: unsigned big-endian 32-bit value.  NOT USED IN KERNEL. */
 static __inline uint32_t
-isonum_732(p)
-       unsigned char *p;
+isonum_732(u_char *p)
 {
 #if defined(UNALIGNED_ACCESS) && (BYTE_ORDER == BIG_ENDIAN)
        return *(uint32_t *)p;
@@ -272,12 +253,7 @@
 
 /* 7.3.3: unsigned both-endian (little, then big) 32-bit value */
 static __inline uint32_t
-#if __STDC__
 isonum_733(u_char *p)
-#else
-isonum_733(p)
-       u_char *p;
-#endif
 {
 #if defined(UNALIGNED_ACCESS) && \
     ((BYTE_ORDER == LITTLE_ENDIAN) || (BYTE_ORDER == BIG_ENDIAN))



Home | Main Index | Thread Index | Old Index