mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't attempt to decvlare M_DEVFS whern MALLOC_DECLARE is not defined.
This fixes warnings that should be errors in fstat. Reminded by: alpha tinderbox Fixed some style bugs (ones near BOF and EOF; there are many more).
This commit is contained in:
parent
54a4c5bf21
commit
4cc6241557
1 changed files with 6 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
* Copyright (c) 2000
|
||||
|
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#ifndef _FS_DEVFS_DEVFS_H_
|
||||
#define _FS_DEVFS_DEVFS_H_
|
||||
#define _FS_DEVFS_DEVFS_H_
|
||||
|
||||
#ifdef _KERNEL /* No userland stuff in here... */
|
||||
|
||||
|
|
@ -60,7 +60,9 @@
|
|||
*/
|
||||
#define DEVFSINOMOUNT 0x2000000
|
||||
|
||||
#ifdef MALLOC_DECLARE
|
||||
MALLOC_DECLARE(M_DEVFS);
|
||||
#endif
|
||||
|
||||
struct devfs_dirent {
|
||||
int de_inode;
|
||||
|
|
@ -113,4 +115,5 @@ void devfs_purge (struct devfs_dirent *dd);
|
|||
struct devfs_dirent *devfs_vmkdir (char *name, int namelen, struct devfs_dirent *dotdot);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
#endif /* _FS_DEVFS_DEVFS_H_ */
|
||||
|
||||
#endif /* !_FS_DEVFS_DEVFS_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue