mirror of
https://github.com/davatorium/rofi.git
synced 2025-04-21 17:52:51 -04:00
fix small compile warning glib.
This commit is contained in:
parent
4e06bff706
commit
82a50c6111
2 changed files with 7 additions and 5 deletions
|
@ -29,7 +29,6 @@
|
|||
#define G_LOG_DOMAIN "Dialogs.Script"
|
||||
|
||||
#include "dialogs/script.h"
|
||||
#include "config.h"
|
||||
#include "helper.h"
|
||||
#include "rofi.h"
|
||||
#include <assert.h>
|
||||
|
@ -204,7 +203,11 @@ static DmenuScriptEntry *execute_executor(Mode *sw, char *arg,
|
|||
}
|
||||
if (retv) {
|
||||
size_t buf_length = strlen(buffer) + 1;
|
||||
#if GLIB_CHECK_VERSION(2, 68, 0)
|
||||
retv[(*length)].entry = g_memdup2(buffer, buf_length);
|
||||
#else
|
||||
retv[(*length)].entry = g_memdup(buffer, buf_length);
|
||||
#endif
|
||||
retv[(*length)].icon_name = NULL;
|
||||
retv[(*length)].meta = NULL;
|
||||
retv[(*length)].info = NULL;
|
||||
|
|
|
@ -26,11 +26,10 @@
|
|||
*/
|
||||
|
||||
#include <glib.h>
|
||||
#include "rofi.h"
|
||||
#include "config.h"
|
||||
#include "nkutils-bindings.h"
|
||||
#include "xrmoptions.h"
|
||||
#include <string.h>
|
||||
#include "nkutils-bindings.h"
|
||||
#include "rofi.h"
|
||||
#include "xrmoptions.h"
|
||||
|
||||
typedef struct {
|
||||
guint id;
|
||||
|
|
Loading…
Add table
Reference in a new issue