Date: Mon, 15 May 1995 22:22:12 -0700 From: Matt Day <mday@artisoft.com> To: freebsd-hackers@FreeBSD.org Subject: more tiny lint fixes Message-ID: <199505160522.WAA14674@sting.artisoft.com>
next in thread | raw e-mail | index | archive | help
Some lint fixes relative to 2.0-950322-SNAP:
- Don't call TAILQ_HEAD() macro with empty parameter in vfs_cache.c
  (Microsoft Visual C++ doesn't like that)
- "strat" arg to readdisklabel() and writedisklabel() should be
  d_strategy_t *, not void (*)()
- "prot" arg to vm_page_protect() should be vm_prot_t, not int
Thanks.
*** sys/kern/vfs_cache.c-	Sun Mar 19 02:33:51 1995
--- sys/kern/vfs_cache.c	Mon May 15 15:36:59 1995
***************
*** 71,77 ****
   * Structures associated with name cacheing.
   */
  LIST_HEAD(nchashhead, namecache) *nchashtbl;	/* Hash Table */
! TAILQ_HEAD(, namecache) nclruhead;	/* LRU chain */
  u_long	nchash;				/* size of hash table - 1 */
  struct	nchstats nchstats;		/* cache effectiveness statistics */
  struct vnode nchENOENT;		/* our own "novnode" */
--- 71,77 ----
   * Structures associated with name cacheing.
   */
  LIST_HEAD(nchashhead, namecache) *nchashtbl;	/* Hash Table */
! TAILQ_HEAD(nclruhead, namecache) nclruhead;	/* LRU chain */
  u_long	nchash;				/* size of hash table - 1 */
  struct	nchstats nchstats;		/* cache effectiveness statistics */
  struct vnode nchENOENT;		/* our own "novnode" */
*** sys/ufs/ufs/ufs_disksubr.c-	Sat Mar 18 00:06:51 1995
--- sys/ufs/ufs/ufs_disksubr.c	Mon May 15 14:48:34 1995
***************
*** 223,229 ****
  char *
  readdisklabel(dev, strat, lp, dp, bdp)
  	dev_t dev;
! 	void (*strat)();
  	register struct disklabel *lp;
  	struct dos_partition *dp;
  	struct dkbad *bdp;
--- 223,229 ----
  char *
  readdisklabel(dev, strat, lp, dp, bdp)
  	dev_t dev;
! 	d_strategy_t *strat;
  	register struct disklabel *lp;
  	struct dos_partition *dp;
  	struct dkbad *bdp;
***************
*** 458,464 ****
  int
  writedisklabel(dev, strat, lp)
  	dev_t dev;
! 	void (*strat)();
  	register struct disklabel *lp;
  {
  	struct buf *bp = NULL;
--- 458,464 ----
  int
  writedisklabel(dev, strat, lp)
  	dev_t dev;
! 	d_strategy_t *strat;
  	register struct disklabel *lp;
  {
  	struct buf *bp = NULL;
*** sys/vm/vm_page.h-	Wed Mar  1 16:30:01 1995
--- sys/vm/vm_page.h	Mon May 15 21:59:30 1995
***************
*** 281,287 ****
  }
  
  static inline void
! vm_page_protect(vm_page_t mem, int prot)
  {
  	if (prot == VM_PROT_NONE) {
  		if (mem->flags & (PG_WRITEABLE|PG_MAPPED)) {
--- 281,287 ----
  }
  
  static inline void
! vm_page_protect(vm_page_t mem, vm_prot_t prot)
  {
  	if (prot == VM_PROT_NONE) {
  		if (mem->flags & (PG_WRITEABLE|PG_MAPPED)) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505160522.WAA14674>
