summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2005-10-04 23:46:14 +0000
committerkrw <krw@openbsd.org>2005-10-04 23:46:14 +0000
commitdd0dd5d2b779a45abadd38dbc0844c815e94c34b (patch)
tree1b010ba7255a677e548dbcf271e48e26ed0212e7
parent- support -l and -u flags; (diff)
downloadwireguard-openbsd-dd0dd5d2b779a45abadd38dbc0844c815e94c34b.tar.xz
wireguard-openbsd-dd0dd5d2b779a45abadd38dbc0844c815e94c34b.zip
Emit '#define NUM_CRIT_SECTIONS' instead of 'static const int
num_crit_sections' so that array declarations in aic7[9x]xx.c use compile time constructs that can be parsed by Anil. No functional change.
-rw-r--r--sys/dev/microcode/aic7xxx/aicasm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/microcode/aic7xxx/aicasm.c b/sys/dev/microcode/aic7xxx/aicasm.c
index e488d2bcdbf..aa6fb679c69 100644
--- a/sys/dev/microcode/aic7xxx/aicasm.c
+++ b/sys/dev/microcode/aic7xxx/aicasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aicasm.c,v 1.13 2004/09/18 19:51:53 mickey Exp $ */
+/* $OpenBSD: aicasm.c,v 1.14 2005/10/04 23:46:14 krw Exp $ */
/*
* Aic7xxx SCSI host adapter firmware asssembler
*
@@ -38,7 +38,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*
- * $Id: aicasm.c,v 1.13 2004/09/18 19:51:53 mickey Exp $
+ * $Id: aicasm.c,v 1.14 2005/10/04 23:46:14 krw Exp $
*
* $FreeBSD: src/sys/dev/aic7xxx/aicasm/aicasm.c,v 1.37 2004/03/12 21:45:25 trhodes Exp $
*/
@@ -456,8 +456,7 @@ output_code()
fprintf(ofile, "\n};\n\n");
fprintf(ofile,
-"static const int num_critical_sections = sizeof(critical_sections)\n"
-" / sizeof(*critical_sections);\n");
+"#define NUM_CRITICAL_SECTIONS (sizeof(critical_sections) / sizeof(*critical_sections))\n");
fprintf(stderr, "%s: %d instructions used\n", appname, instrcount);
}