summaryrefslogtreecommitdiff
path: root/src/lx_panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lx_panel.c')
-rw-r--r--src/lx_panel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lx_panel.c b/src/lx_panel.c
index 6b5d4ed..4a304a9 100644
--- a/src/lx_panel.c
+++ b/src/lx_panel.c
@@ -110,7 +110,7 @@ LXGetLegacyPanelMode(ScrnInfoPtr pScrni)
/* Construct a moderec from the specified panel mode */
DisplayModePtr
-LXGetManualPanelMode(char *modestr)
+LXGetManualPanelMode(const char *modestr)
{
int clock;
int hactive, hsstart, hsend, htotal;
@@ -126,15 +126,15 @@ LXGetManualPanelMode(char *modestr)
if (ret != 9)
return NULL;
- mode = xnfcalloc(1, sizeof(DisplayModeRec));
+ mode = XNFcallocarray(1, sizeof(DisplayModeRec));
if (mode == NULL)
return NULL;
sprintf(sname, "%dx%d", hactive, vactive);
- mode->name = xnfalloc(strlen(sname) + 1);
- strcpy(mode->name, sname);
+ mode->name = (char *)XNFalloc(strlen(sname) + 1);
+ strcpy((char *)mode->name, sname);
mode->type = M_T_DRIVER | M_T_PREFERRED;
mode->Clock = clock;