Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2012 19:37:55 GMT
From:      Brooks Davis <brooks@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 219864 for review
Message-ID:  <201211291937.qATJbtVd046667@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@219864?ac=10

Change 219864 by brooks@brooks_zenith on 2012/11/29 19:37:25

	Add a couple more #ifndef COMPILE_ONLY statements so the
	compiler doesn't complain about mlist_insert() being unused.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/contrib/file/apprentice.c#4 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/contrib/file/apprentice.c#4 (text+ko) ====

@@ -110,11 +110,11 @@
     const char *);
 private int apprentice_map(struct magic_set *, struct magic **, uint32_t *,
     const char *);
+private int mlist_insert(struct magic_set *, struct mlist *, struct magic *,
+    uint32_t, int);
 #endif
 private int apprentice_compile(struct magic_set *, struct magic **, uint32_t *,
     const char *);
-private int mlist_insert(struct magic_set *, struct mlist *, struct magic *,
-    uint32_t, int);
 private int check_format_type(const char *, int);
 private int check_format(struct magic_set *, struct magic *);
 private int get_op(char);
@@ -319,6 +319,7 @@
 	return 0;
 }
 
+#ifndef COMPILE_ONLY
 private int
 mlist_insert(struct magic_set *ms, struct mlist *mlist, struct magic *magic,
     uint32_t nmagic, int mapped)
@@ -342,6 +343,7 @@
 
 	return 0;
 }
+#endif
 
 protected void
 file_delmagic(struct magic *p, int type, size_t entries)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211291937.qATJbtVd046667>