summaryrefslogtreecommitdiff
path: root/hw/xfree86/common/xf86Priv.h
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-03-07 09:25:06 -0500
committerAdam Jackson <ajax@redhat.com>2008-03-07 09:25:06 -0500
commit3bf7ff70323d533a3a05c0f3e22393e63beada99 (patch)
tree906dbd0c16787aaf483c20eca1f71158f65501da /hw/xfree86/common/xf86Priv.h
parent3fcb6445dc08f42488287162e3b7009d405e9c5b (diff)
Size xf86DefaultModes explicitly.
i.e., don't check for the end of the list by ->name == NULL, since that won't work now. Fix the consumers of xf86DefaultModes to use the new explicit size as well.
Diffstat (limited to 'hw/xfree86/common/xf86Priv.h')
-rw-r--r--hw/xfree86/common/xf86Priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/xfree86/common/xf86Priv.h b/hw/xfree86/common/xf86Priv.h
index dd8b5a022..c0d240dd5 100644
--- a/hw/xfree86/common/xf86Priv.h
+++ b/hw/xfree86/common/xf86Priv.h
@@ -154,6 +154,7 @@ Bool xf86PathIsSafe(const char *path);
/* xf86DefaultModes */
extern const DisplayModeRec xf86DefaultModes[];
+extern const int xf86NumDefaultModes;
/* xf86DoProbe.c */
void DoProbe(void);