summaryrefslogtreecommitdiff
path: root/src/lx_panel.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2024-08-02 08:32:14 +0200
committerMatthieu Herrb <matthieu@herrb.eu>2024-08-02 08:32:14 +0200
commit9627fd587c9aa066d4ce6e852b26950030f9c3cd (patch)
tree50375cab018b3b62076bf4a6a674fca7613db68b /src/lx_panel.c
parent8b6ec6bb08fa9c3b19753acb436bbb8ecfae9233 (diff)
parent7047b6da264e946e77eeee4080d194c807562d68 (diff)
Merge remote-tracking branch 'origin/master' into obsdobsd
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;