From owner-freebsd-hackers Mon May 15 22:22:44 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id WAA29247 for hackers-outgoing; Mon, 15 May 1995 22:22:44 -0700 Received: from sting.artisoft.com (sting.Artisoft.COM [198.17.250.50]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id WAA29241 for ; Mon, 15 May 1995 22:22:42 -0700 Received: (from mday@localhost) by sting.artisoft.com (8.6.9/8.6.9) id WAA14674 for freebsd-hackers@freebsd.org; Mon, 15 May 1995 22:22:12 -0700 Date: Mon, 15 May 1995 22:22:12 -0700 From: Matt Day Message-Id: <199505160522.WAA14674@sting.artisoft.com> To: freebsd-hackers@FreeBSD.org Subject: more tiny lint fixes Sender: hackers-owner@FreeBSD.org Precedence: bulk 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)) {