Date: Sun, 5 Aug 2007 19:02:30 GMT From: Fredrik Lindberg <fli@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124748 for review Message-ID: <200708051902.l75J2UwZ044377@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124748 Change 124748 by fli@fli_nexus on 2007/08/05 19:01:53 - Use unsigned int on variables that hold interfaces indexes. - Add cache_flush() prototype. Affected files ... .. //depot/projects/soc2007/fli-mdns_sd/mdnsd/mdnsd.h#6 edit Differences ... ==== //depot/projects/soc2007/fli-mdns_sd/mdnsd/mdnsd.h#6 (text+ko) ==== @@ -58,7 +58,7 @@ DEF_MTX(g_bp_mtx); TAILQ_HEAD(, md_if) g_ifs_head; /* Active interfaces */ struct md_if **g_ifs; /* Interfaces by index */ - int g_ifs_max; /* Maximum interface index */ + unsigned int g_ifs_max; /* Maximum interface index */ int g_flags; #define GLOB_CSOPEN 0x01 /* unix client pipe open */ struct clisrv g_cs; /* unix client pipe server */ @@ -100,7 +100,7 @@ DEF_RW(mif_lock); struct md_glob *mif_glob; /* back pointer */ int mif_refcnt; - int mif_index; /* interface index */ + unsigned int mif_index; /* interface index */ int mif_flags; #define MIF_DYING 0x0001 /* Interface is going away */ #define MIF_LINKUP 0x0002 /* Link is up (carrier) */ @@ -137,6 +137,7 @@ void cache_purge(struct cache *, time_t, char *, uint16_t); void cache_clean(struct cache *); void cache_set_ttl(struct cache *, struct record_res *, uint32_t); +void cache_flush(struct cache *); /* parse.y */ int cfg_read(struct dbr *r, const char *, const char *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708051902.l75J2UwZ044377>