summaryrefslogtreecommitdiffstats
path: root/sys/isofs/cd9660/iso.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-07-25 21:50:50 +0000
committerbde <bde@FreeBSD.org>1995-07-25 21:50:50 +0000
commita4688d0202b9fdc2094eaf39b7c45328ee4ee660 (patch)
tree77ee3d0c846e7c7fb4c499cb35567ea7826b3d70 /sys/isofs/cd9660/iso.h
parentdd85198e40d997c9ba9f15087cffe5ed4fbe1361 (diff)
downloadFreeBSD-src-a4688d0202b9fdc2094eaf39b7c45328ee4ee660.zip
FreeBSD-src-a4688d0202b9fdc2094eaf39b7c45328ee4ee660.tar.gz
Change `extern inline' to `static inline' so that several functions
don't go away when the kernel is compiled with -O. The functions are backed up by extern versions in cd9660_util.c, but these versions are disabled by `#ifdef __notanymore__'. They could have been enabled by using `#if defined(__notanymore__) || !defined(__OPTIMIZE__)' but then I would have had to check that they still work. The correct way to handle all this is to replace `extern inline' by `EXTERN_INLINE' and define `EXTERN_INLINE' as `extern inline' in most modules and as empty in one module.
Diffstat (limited to 'sys/isofs/cd9660/iso.h')
-rw-r--r--sys/isofs/cd9660/iso.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/isofs/cd9660/iso.h b/sys/isofs/cd9660/iso.h
index 406572e..f9e5dcb 100644
--- a/sys/isofs/cd9660/iso.h
+++ b/sys/isofs/cd9660/iso.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)iso.h 8.2 (Berkeley) 1/23/94
- * $Id: iso.h,v 1.4 1995/01/16 17:03:29 joerg Exp $
+ * $Id: iso.h,v 1.5 1995/05/30 08:05:06 rgrimes Exp $
*/
#define ISODCL(from, to) (to - from + 1)
@@ -238,56 +238,56 @@ int cd9660_mountroot __P((void));
extern int (**cd9660_vnodeop_p)();
-extern inline int
+static inline int
isonum_711(p)
unsigned char *p;
{
return *p;
}
-extern inline int
+static inline int
isonum_712(p)
char *p;
{
return *p;
}
-extern inline int
+static inline int
isonum_721(p)
unsigned char *p;
{
return *p|((char)p[1] << 8);
}
-extern inline int
+static inline int
isonum_722(p)
unsigned char *p;
{
return ((char)*p << 8)|p[1];
}
-extern inline int
+static inline int
isonum_723(p)
unsigned char *p;
{
return isonum_721(p);
}
-extern inline int
+static inline int
isonum_731(p)
unsigned char *p;
{
return *p|(p[1] << 8)|(p[2] << 16)|(p[3] << 24);
}
-extern inline int
+static inline int
isonum_732(p)
unsigned char *p;
{
return (*p << 24)|(p[1] << 16)|(p[2] << 8)|p[3];
}
-extern inline int
+static inline int
isonum_733(p)
unsigned char *p;
{
OpenPOWER on IntegriCloud