Fix warnings, update DEPENDS, update Makefile for NetBSD
This commit is contained in:
@ -486,7 +486,7 @@ int handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t state,
|
||||
if (client->name != NULL)
|
||||
free(client->name);
|
||||
|
||||
asprintf(&(client->name), "%.*s", xcb_get_property_value_length(prop), xcb_get_property_value(prop));
|
||||
asprintf(&(client->name), "%.*s", xcb_get_property_value_length(prop), (char*)xcb_get_property_value(prop));
|
||||
LOG("rename to \"%s\".\n", client->name);
|
||||
|
||||
if (client->container->mode == MODE_STACK)
|
||||
|
@ -145,7 +145,7 @@ void check_error(xcb_connection_t *conn, xcb_void_cookie_t cookie, char *err_mes
|
||||
* returned. It has to be freed when done.
|
||||
*
|
||||
*/
|
||||
char *convert_utf8_to_ucs2(char *input, int *real_strlen) {
|
||||
char *convert_utf8_to_ucs2(const char *input, int *real_strlen) {
|
||||
size_t input_size = strlen(input) + 1;
|
||||
/* UCS-2 consumes exactly two bytes for each glyph */
|
||||
int buffer_size = input_size * 2;
|
||||
|
Reference in New Issue
Block a user