mirror of
https://github.com/Mintplex-Labs/libnut-core.git
synced 2026-08-24 21:21:24 -04:00
const char for setXDisplay
This commit is contained in:
+1
-1
@@ -48,7 +48,7 @@ char *getXDisplay(void)
|
||||
return displayName;
|
||||
}
|
||||
|
||||
void setXDisplay(char *name)
|
||||
void setXDisplay(const char *name)
|
||||
{
|
||||
displayName = strdup(name);
|
||||
hasDisplayNameChanged = 1;
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ extern "C"
|
||||
#endif
|
||||
|
||||
char *getXDisplay(void);
|
||||
void setXDisplay(char *name);
|
||||
void setXDisplay(const char *name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user