PERFORCE change 124748 for review
Fredrik Lindberg
fli at FreeBSD.org
Sun Aug 5 12:02:31 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=124748
Change 124748 by fli at 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 *);
More information about the p4-projects
mailing list