Fix gcc -Wwrite-strings warnings in xf86 ddx
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
8e4556f560
commit
09e4b78f79
@ -248,7 +248,7 @@ xf86ModulelistFromConfig(pointer **optlist)
|
|||||||
{
|
{
|
||||||
int count = 0, i = 0;
|
int count = 0, i = 0;
|
||||||
char **modulearray;
|
char **modulearray;
|
||||||
char *ignore[] = { "GLcore", "speedo", "bitmap", "drm",
|
const char *ignore[] = { "GLcore", "speedo", "bitmap", "drm",
|
||||||
"freetype", "type1",
|
"freetype", "type1",
|
||||||
NULL };
|
NULL };
|
||||||
pointer *optarray;
|
pointer *optarray;
|
||||||
@ -522,7 +522,7 @@ fixup_video_driver_list(char **drivers)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char **
|
static char **
|
||||||
GenerateDriverlist(char * dirname)
|
GenerateDriverlist(const char * dirname)
|
||||||
{
|
{
|
||||||
char **ret;
|
char **ret;
|
||||||
const char *subdirs[] = { dirname, NULL };
|
const char *subdirs[] = { dirname, NULL };
|
||||||
@ -553,7 +553,7 @@ xf86DriverlistFromCompile(void)
|
|||||||
* available is printed.
|
* available is printed.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
xf86ConfigError(char *msg, ...)
|
xf86ConfigError(const char *msg, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
@ -2301,7 +2301,7 @@ ConfigStatus
|
|||||||
xf86HandleConfigFile(Bool autoconfig)
|
xf86HandleConfigFile(Bool autoconfig)
|
||||||
{
|
{
|
||||||
const char *filename, *dirname, *sysdirname;
|
const char *filename, *dirname, *sysdirname;
|
||||||
char *filesearch, *dirsearch;
|
const char *filesearch, *dirsearch;
|
||||||
MessageType filefrom = X_DEFAULT;
|
MessageType filefrom = X_DEFAULT;
|
||||||
MessageType dirfrom = X_DEFAULT;
|
MessageType dirfrom = X_DEFAULT;
|
||||||
char *scanptr;
|
char *scanptr;
|
||||||
|
@ -51,7 +51,7 @@ typedef enum _ConfigStatus {
|
|||||||
} ConfigStatus;
|
} ConfigStatus;
|
||||||
|
|
||||||
typedef struct _ModuleDefault {
|
typedef struct _ModuleDefault {
|
||||||
char *name;
|
const char *name;
|
||||||
Bool toLoad;
|
Bool toLoad;
|
||||||
XF86OptionPtr load_opt;
|
XF86OptionPtr load_opt;
|
||||||
} ModuleDefault;
|
} ModuleDefault;
|
||||||
|
@ -58,17 +58,17 @@ Bool xf86DoConfigurePass1 = TRUE;
|
|||||||
static Bool foundMouse = FALSE;
|
static Bool foundMouse = FALSE;
|
||||||
|
|
||||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
|
||||||
static char *DFLT_MOUSE_DEV = "/dev/sysmouse";
|
static const char *DFLT_MOUSE_DEV = "/dev/sysmouse";
|
||||||
static char *DFLT_MOUSE_PROTO = "auto";
|
static const char *DFLT_MOUSE_PROTO = "auto";
|
||||||
#elif defined(linux)
|
#elif defined(linux)
|
||||||
static char DFLT_MOUSE_DEV[] = "/dev/input/mice";
|
static const char *DFLT_MOUSE_DEV = "/dev/input/mice";
|
||||||
static char DFLT_MOUSE_PROTO[] = "auto";
|
static const char *DFLT_MOUSE_PROTO = "auto";
|
||||||
#elif defined(WSCONS_SUPPORT)
|
#elif defined(WSCONS_SUPPORT)
|
||||||
static char *DFLT_MOUSE_DEV = "/dev/wsmouse";
|
static const char *DFLT_MOUSE_DEV = "/dev/wsmouse";
|
||||||
static char *DFLT_MOUSE_PROTO = "wsmouse";
|
static const char *DFLT_MOUSE_PROTO = "wsmouse";
|
||||||
#else
|
#else
|
||||||
static char *DFLT_MOUSE_DEV = "/dev/mouse";
|
static const char *DFLT_MOUSE_DEV = "/dev/mouse";
|
||||||
static char *DFLT_MOUSE_PROTO = "auto";
|
static const char *DFLT_MOUSE_PROTO = "auto";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -516,9 +516,9 @@ void
|
|||||||
DoConfigure(void)
|
DoConfigure(void)
|
||||||
{
|
{
|
||||||
int i,j, screennum = -1;
|
int i,j, screennum = -1;
|
||||||
char *home = NULL;
|
const char *home = NULL;
|
||||||
char filename[PATH_MAX];
|
char filename[PATH_MAX];
|
||||||
char *addslash = "";
|
const char *addslash = "";
|
||||||
XF86ConfigPtr xf86config = NULL;
|
XF86ConfigPtr xf86config = NULL;
|
||||||
char **vlist, **vl;
|
char **vlist, **vl;
|
||||||
int *dev2screen;
|
int *dev2screen;
|
||||||
|
@ -163,7 +163,7 @@ const char *xf86VisualNames[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Parameters set only from the command line */
|
/* Parameters set only from the command line */
|
||||||
char *xf86ServerName = "no-name";
|
const char *xf86ServerName = "no-name";
|
||||||
Bool xf86fpFlag = FALSE;
|
Bool xf86fpFlag = FALSE;
|
||||||
Bool xf86sFlag = FALSE;
|
Bool xf86sFlag = FALSE;
|
||||||
Bool xf86bsEnableFlag = FALSE;
|
Bool xf86bsEnableFlag = FALSE;
|
||||||
|
@ -96,7 +96,7 @@
|
|||||||
static void
|
static void
|
||||||
printModeRejectMessage(int index, DisplayModePtr p, int status)
|
printModeRejectMessage(int index, DisplayModePtr p, int status)
|
||||||
{
|
{
|
||||||
char *type;
|
const char *type;
|
||||||
|
|
||||||
if (p->type & M_T_BUILTIN)
|
if (p->type & M_T_BUILTIN)
|
||||||
type = "built-in ";
|
type = "built-in ";
|
||||||
@ -2065,7 +2065,7 @@ xf86PrintModes(ScrnInfoPtr scrp)
|
|||||||
{
|
{
|
||||||
DisplayModePtr p;
|
DisplayModePtr p;
|
||||||
float hsync, refresh = 0;
|
float hsync, refresh = 0;
|
||||||
char *desc, *desc2, *prefix, *uprefix;
|
const char *desc, *desc2, *prefix, *uprefix;
|
||||||
|
|
||||||
if (scrp == NULL)
|
if (scrp == NULL)
|
||||||
return;
|
return;
|
||||||
|
@ -72,7 +72,7 @@ typedef struct {
|
|||||||
|
|
||||||
extern _X_EXPORT int xf86SetIntOption(XF86OptionPtr optlist, const char *name, int deflt);
|
extern _X_EXPORT int xf86SetIntOption(XF86OptionPtr optlist, const char *name, int deflt);
|
||||||
extern _X_EXPORT double xf86SetRealOption(XF86OptionPtr optlist, const char *name, double deflt);
|
extern _X_EXPORT double xf86SetRealOption(XF86OptionPtr optlist, const char *name, double deflt);
|
||||||
extern _X_EXPORT char *xf86SetStrOption(XF86OptionPtr optlist, const char *name, char *deflt);
|
extern _X_EXPORT char *xf86SetStrOption(XF86OptionPtr optlist, const char *name, const char *deflt);
|
||||||
extern _X_EXPORT int xf86SetBoolOption(XF86OptionPtr list, const char *name, int deflt );
|
extern _X_EXPORT int xf86SetBoolOption(XF86OptionPtr list, const char *name, int deflt );
|
||||||
extern _X_EXPORT double xf86SetPercentOption(XF86OptionPtr list, const char *name, double deflt );
|
extern _X_EXPORT double xf86SetPercentOption(XF86OptionPtr list, const char *name, double deflt );
|
||||||
extern _X_EXPORT int xf86CheckIntOption(XF86OptionPtr optlist, const char *name, int deflt);
|
extern _X_EXPORT int xf86CheckIntOption(XF86OptionPtr optlist, const char *name, int deflt);
|
||||||
@ -91,7 +91,7 @@ extern _X_EXPORT char *xf86OptionName(XF86OptionPtr opt);
|
|||||||
extern _X_EXPORT char *xf86OptionValue(XF86OptionPtr opt);
|
extern _X_EXPORT char *xf86OptionValue(XF86OptionPtr opt);
|
||||||
extern _X_EXPORT void xf86OptionListReport(XF86OptionPtr parm);
|
extern _X_EXPORT void xf86OptionListReport(XF86OptionPtr parm);
|
||||||
extern _X_EXPORT XF86OptionPtr xf86FindOption(XF86OptionPtr options, const char *name);
|
extern _X_EXPORT XF86OptionPtr xf86FindOption(XF86OptionPtr options, const char *name);
|
||||||
extern _X_EXPORT char *xf86FindOptionValue(XF86OptionPtr options, const char *name);
|
extern _X_EXPORT const char *xf86FindOptionValue(XF86OptionPtr options, const char *name);
|
||||||
extern _X_EXPORT void xf86MarkOptionUsed(XF86OptionPtr option);
|
extern _X_EXPORT void xf86MarkOptionUsed(XF86OptionPtr option);
|
||||||
extern _X_EXPORT void xf86MarkOptionUsedByName(XF86OptionPtr options, const char *name);
|
extern _X_EXPORT void xf86MarkOptionUsedByName(XF86OptionPtr options, const char *name);
|
||||||
extern _X_EXPORT Bool xf86CheckIfOptionUsed(XF86OptionPtr option);
|
extern _X_EXPORT Bool xf86CheckIfOptionUsed(XF86OptionPtr option);
|
||||||
|
@ -187,7 +187,7 @@ LookupRealOption(XF86OptionPtr optlist, const char *name, double deflt,
|
|||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
LookupStrOption(XF86OptionPtr optlist, const char *name, char *deflt, Bool markUsed)
|
LookupStrOption(XF86OptionPtr optlist, const char *name, const char *deflt, Bool markUsed)
|
||||||
{
|
{
|
||||||
OptionInfoRec o;
|
OptionInfoRec o;
|
||||||
|
|
||||||
@ -243,7 +243,7 @@ xf86SetRealOption(XF86OptionPtr optlist, const char *name, double deflt)
|
|||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
xf86SetStrOption(XF86OptionPtr optlist, const char *name, char *deflt)
|
xf86SetStrOption(XF86OptionPtr optlist, const char *name, const char *deflt)
|
||||||
{
|
{
|
||||||
return LookupStrOption(optlist, name, deflt, TRUE);
|
return LookupStrOption(optlist, name, deflt, TRUE);
|
||||||
}
|
}
|
||||||
@ -416,7 +416,7 @@ xf86FindOption(XF86OptionPtr options, const char *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
xf86FindOptionValue(XF86OptionPtr options, const char *name)
|
xf86FindOptionValue(XF86OptionPtr options, const char *name)
|
||||||
{
|
{
|
||||||
return xf86findOptionValue(options, name);
|
return xf86findOptionValue(options, name);
|
||||||
|
@ -41,7 +41,7 @@ pmWait (*xf86PMConfirmEventToOs)(int fd,pmEvent event) = NULL;
|
|||||||
static Bool suspended = FALSE;
|
static Bool suspended = FALSE;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
eventName(pmEvent event, char **str)
|
eventName(pmEvent event, const char **str)
|
||||||
{
|
{
|
||||||
switch(event) {
|
switch(event) {
|
||||||
case XF86_APM_SYS_STANDBY: *str="System Standby Request"; return 0;
|
case XF86_APM_SYS_STANDBY: *str="System Standby Request"; return 0;
|
||||||
@ -179,7 +179,7 @@ xf86HandlePMEvents(int fd, pointer data)
|
|||||||
if ((n = xf86PMGetEventFromOs(fd,events,MAX_NO_EVENTS))) {
|
if ((n = xf86PMGetEventFromOs(fd,events,MAX_NO_EVENTS))) {
|
||||||
do {
|
do {
|
||||||
for (i = 0; i < n; i++) {
|
for (i = 0; i < n; i++) {
|
||||||
char *str = NULL;
|
const char *str = NULL;
|
||||||
int verb = eventName(events[i],&str);
|
int verb = eventName(events[i],&str);
|
||||||
|
|
||||||
xf86MsgVerb(X_INFO,verb,"PM Event received: %s\n",str);
|
xf86MsgVerb(X_INFO,verb,"PM Event received: %s\n",str);
|
||||||
|
@ -69,7 +69,7 @@ extern _X_EXPORT Pix24Flags xf86Pix24;
|
|||||||
extern _X_EXPORT rgb xf86Weight;
|
extern _X_EXPORT rgb xf86Weight;
|
||||||
extern _X_EXPORT Bool xf86FlipPixels;
|
extern _X_EXPORT Bool xf86FlipPixels;
|
||||||
extern _X_EXPORT Gamma xf86Gamma;
|
extern _X_EXPORT Gamma xf86Gamma;
|
||||||
extern _X_EXPORT char *xf86ServerName;
|
extern _X_EXPORT const char *xf86ServerName;
|
||||||
|
|
||||||
/* Other parameters */
|
/* Other parameters */
|
||||||
|
|
||||||
|
@ -1062,7 +1062,7 @@ videoPtrToDriverList(struct pci_device *dev,
|
|||||||
int i;
|
int i;
|
||||||
/* Add more entries here if we ever return more than 4 drivers for
|
/* Add more entries here if we ever return more than 4 drivers for
|
||||||
any device */
|
any device */
|
||||||
char *driverList[5] = { NULL, NULL, NULL, NULL, NULL };
|
const char *driverList[5] = { NULL, NULL, NULL, NULL, NULL };
|
||||||
|
|
||||||
switch (dev->vendor_id)
|
switch (dev->vendor_id)
|
||||||
{
|
{
|
||||||
|
@ -3187,7 +3187,7 @@ would not need to use these directly.
|
|||||||
|
|
||||||
<blockquote><para>
|
<blockquote><para>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
char *xf86FindOptionValue(XF86OptionPtr options, const char *name);
|
const char *xf86FindOptionValue(XF86OptionPtr options, const char *name);
|
||||||
</programlisting>
|
</programlisting>
|
||||||
<blockquote><para>
|
<blockquote><para>
|
||||||
Takes a list of options and an option name, and returns the value
|
Takes a list of options and an option name, and returns the value
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
void InitMSP34xxG(MSP3430Ptr m);
|
void InitMSP34xxG(MSP3430Ptr m);
|
||||||
void InitMSP34x5D(MSP3430Ptr m);
|
void InitMSP34x5D(MSP3430Ptr m);
|
||||||
void CheckModeMSP34x5D(MSP3430Ptr m);
|
void CheckModeMSP34x5D(MSP3430Ptr m);
|
||||||
char *MSP_getProductName (CARD16 product_id);
|
static const char *MSP_getProductName (CARD16 product_id);
|
||||||
void mpause(int milliseconds);
|
void mpause(int milliseconds);
|
||||||
|
|
||||||
#define __MSPDEBUG__ 0
|
#define __MSPDEBUG__ 0
|
||||||
@ -305,7 +305,8 @@ void MSP3430SetSource(MSP3430Ptr m, CARD8 value)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
char *MSP_getProductName (CARD16 product_id)
|
static const char *
|
||||||
|
MSP_getProductName (CARD16 product_id)
|
||||||
{
|
{
|
||||||
switch (product_id) {
|
switch (product_id) {
|
||||||
case 0x0400: return "MSP3400D";
|
case 0x0400: return "MSP3400D";
|
||||||
|
@ -330,7 +330,7 @@ xf86findOption (XF86OptionPtr list, const char *name)
|
|||||||
* returned. If the option is not found, a NULL is returned.
|
* returned. If the option is not found, a NULL is returned.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *
|
const char *
|
||||||
xf86findOptionValue (XF86OptionPtr list, const char *name)
|
xf86findOptionValue (XF86OptionPtr list, const char *name)
|
||||||
{
|
{
|
||||||
XF86OptionPtr p = xf86findOption (list, name);
|
XF86OptionPtr p = xf86findOption (list, name);
|
||||||
|
@ -95,9 +95,9 @@ int xf86getSubToken(char **comment);
|
|||||||
int xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
|
int xf86getSubTokenWithTab(char **comment, xf86ConfigSymTabRec *tab);
|
||||||
void xf86unGetToken(int token);
|
void xf86unGetToken(int token);
|
||||||
char *xf86tokenString(void);
|
char *xf86tokenString(void);
|
||||||
void xf86parseError(char *format, ...);
|
void xf86parseError(const char *format, ...);
|
||||||
void xf86validationError(char *format, ...);
|
void xf86validationError(const char *format, ...);
|
||||||
void xf86setSection(char *section);
|
void xf86setSection(const char *section);
|
||||||
int xf86getStringToken(xf86ConfigSymTabRec *tab);
|
int xf86getStringToken(xf86ConfigSymTabRec *tab);
|
||||||
/* write.c */
|
/* write.c */
|
||||||
/* DRI.c */
|
/* DRI.c */
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
#define CONFIG_BUF_LEN 1024
|
#define CONFIG_BUF_LEN 1024
|
||||||
#define CONFIG_MAX_FILES 64
|
#define CONFIG_MAX_FILES 64
|
||||||
|
|
||||||
static int StringToToken (char *, xf86ConfigSymTabRec *);
|
static int StringToToken (const char *, xf86ConfigSymTabRec *);
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
FILE *file;
|
FILE *file;
|
||||||
@ -992,11 +992,11 @@ xf86setBuiltinConfig(const char *config[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xf86parseError (char *format,...)
|
xf86parseError (const char *format,...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
char *filename = numFiles ? configFiles[curFileIndex].path :
|
const char *filename = numFiles ? configFiles[curFileIndex].path
|
||||||
"<builtin configuration>";
|
: "<builtin configuration>";
|
||||||
|
|
||||||
ErrorF ("Parse error on line %d of section %s in file %s\n\t",
|
ErrorF ("Parse error on line %d of section %s in file %s\n\t",
|
||||||
configLineNo, configSection, filename);
|
configLineNo, configSection, filename);
|
||||||
@ -1008,11 +1008,11 @@ xf86parseError (char *format,...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xf86validationError (char *format,...)
|
xf86validationError (const char *format,...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
char *filename = numFiles ? configFiles[curFileIndex].path :
|
const char *filename = numFiles ? configFiles[curFileIndex].path
|
||||||
"<builtin configuration>";
|
: "<builtin configuration>";
|
||||||
|
|
||||||
ErrorF ("Data incomplete in file %s\n\t", filename);
|
ErrorF ("Data incomplete in file %s\n\t", filename);
|
||||||
va_start (ap, format);
|
va_start (ap, format);
|
||||||
@ -1023,7 +1023,7 @@ xf86validationError (char *format,...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
xf86setSection (char *section)
|
xf86setSection (const char *section)
|
||||||
{
|
{
|
||||||
free(configSection);
|
free(configSection);
|
||||||
configSection = strdup(section);
|
configSection = strdup(section);
|
||||||
@ -1040,7 +1040,7 @@ xf86getStringToken (xf86ConfigSymTabRec * tab)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
StringToToken (char *str, xf86ConfigSymTabRec * tab)
|
StringToToken (const char *str, xf86ConfigSymTabRec * tab)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -77,7 +77,7 @@ extern _X_EXPORT char *xf86optionValue(XF86OptionPtr opt);
|
|||||||
extern _X_EXPORT XF86OptionPtr xf86newOption(char *name, char *value);
|
extern _X_EXPORT XF86OptionPtr xf86newOption(char *name, char *value);
|
||||||
extern _X_EXPORT XF86OptionPtr xf86nextOption(XF86OptionPtr list);
|
extern _X_EXPORT XF86OptionPtr xf86nextOption(XF86OptionPtr list);
|
||||||
extern _X_EXPORT XF86OptionPtr xf86findOption(XF86OptionPtr list, const char *name);
|
extern _X_EXPORT XF86OptionPtr xf86findOption(XF86OptionPtr list, const char *name);
|
||||||
extern _X_EXPORT char *xf86findOptionValue(XF86OptionPtr list, const char *name);
|
extern _X_EXPORT const char *xf86findOptionValue(XF86OptionPtr list, const char *name);
|
||||||
extern _X_EXPORT XF86OptionPtr xf86optionListCreate(const char **options, int count, int used);
|
extern _X_EXPORT XF86OptionPtr xf86optionListCreate(const char **options, int count, int used);
|
||||||
extern _X_EXPORT XF86OptionPtr xf86optionListMerge(XF86OptionPtr head, XF86OptionPtr tail);
|
extern _X_EXPORT XF86OptionPtr xf86optionListMerge(XF86OptionPtr head, XF86OptionPtr tail);
|
||||||
extern _X_EXPORT int xf86nameCompare (const char *s1, const char *s2);
|
extern _X_EXPORT int xf86nameCompare (const char *s1, const char *s2);
|
||||||
|
@ -479,7 +479,7 @@ XF86ConfigRec, *XF86ConfigPtr;
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int token; /* id of the token */
|
int token; /* id of the token */
|
||||||
char *name; /* pointer to the LOWERCASED name */
|
const char *name; /* pointer to the LOWERCASED name */
|
||||||
}
|
}
|
||||||
xf86ConfigSymTabRec, *xf86ConfigSymTabPtr;
|
xf86ConfigSymTabRec, *xf86ConfigSymTabPtr;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "BT.h"
|
#include "BT.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *DeviceName;
|
const char *DeviceName;
|
||||||
} xf86BTramdacInfo;
|
} xf86BTramdacInfo;
|
||||||
|
|
||||||
extern xf86BTramdacInfo BTramdacDeviceInfo[];
|
extern xf86BTramdacInfo BTramdacDeviceInfo[];
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "IBM.h"
|
#include "IBM.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *DeviceName;
|
const char *DeviceName;
|
||||||
} xf86IBMramdacInfo;
|
} xf86IBMramdacInfo;
|
||||||
|
|
||||||
extern xf86IBMramdacInfo IBMramdacDeviceInfo[];
|
extern xf86IBMramdacInfo IBMramdacDeviceInfo[];
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
#include "TI.h"
|
#include "TI.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *DeviceName;
|
const char *DeviceName;
|
||||||
} xf86TIramdacInfo;
|
} xf86TIramdacInfo;
|
||||||
|
|
||||||
extern xf86TIramdacInfo TIramdacDeviceInfo[];
|
extern xf86TIramdacInfo TIramdacDeviceInfo[];
|
||||||
|
@ -151,7 +151,7 @@ typedef struct __options
|
|||||||
|
|
||||||
/* prototypes */
|
/* prototypes */
|
||||||
|
|
||||||
void print_value(int n, char *name, float val);
|
void print_value(int n, const char *name, float val);
|
||||||
void print_xf86_mode (mode *m);
|
void print_xf86_mode (mode *m);
|
||||||
void print_fb_mode (mode *m);
|
void print_fb_mode (mode *m);
|
||||||
mode *vert_refresh (int h_pixels, int v_lines, float freq,
|
mode *vert_refresh (int h_pixels, int v_lines, float freq,
|
||||||
@ -168,7 +168,7 @@ options *parse_command_line (int argc, char *argv[]);
|
|||||||
|
|
||||||
int global_verbose = 0;
|
int global_verbose = 0;
|
||||||
|
|
||||||
void print_value(int n, char *name, float val)
|
void print_value(int n, const char *name, float val)
|
||||||
{
|
{
|
||||||
if (global_verbose) {
|
if (global_verbose) {
|
||||||
printf("%2d: %-27s: %15f\n", n, name, val);
|
printf("%2d: %-27s: %15f\n", n, name, val);
|
||||||
|
@ -170,7 +170,7 @@ vbeFree(vbeInfoPtr pVbe)
|
|||||||
static Bool
|
static Bool
|
||||||
vbeProbeDDC(vbeInfoPtr pVbe)
|
vbeProbeDDC(vbeInfoPtr pVbe)
|
||||||
{
|
{
|
||||||
char *ddc_level;
|
const char *ddc_level;
|
||||||
int screen = pVbe->pInt10->scrnIndex;
|
int screen = pVbe->pInt10->scrnIndex;
|
||||||
|
|
||||||
if (pVbe->ddc == DDC_NONE)
|
if (pVbe->ddc == DDC_NONE)
|
||||||
|
Loading…
Reference in New Issue
Block a user