From: Daniel Carl Date: Wed, 30 Jul 2014 21:34:09 +0000 (+0200) Subject: Replaced deprecated g_memmove function calls. X-Git-Url: https://git.owens.tech/git.owens.tech/git.owens.tech/git?a=commitdiff_plain;h=555458c31ff9d6bb6232513dd5229b94e9158b90;p=vimb.git Replaced deprecated g_memmove function calls. --- diff --git a/src/map.c b/src/map.c index 93067bb..dbee241 100644 --- a/src/map.c +++ b/src/map.c @@ -203,7 +203,7 @@ MapState map_handle_keys(const guchar *keys, int keylen, gboolean use_map) map.resolved -= 3; map.qlen -= 3; /* move all other queue entries three steps to the left */ - g_memmove(map.queue, map.queue + 3, map.qlen); + memmove(map.queue, map.queue + 3, map.qlen); } else { /* get first char of queue */ qk = map.queue[0]; @@ -212,7 +212,7 @@ MapState map_handle_keys(const guchar *keys, int keylen, gboolean use_map) map.qlen--; /* move all other queue entries one step to the left */ - g_memmove(map.queue, map.queue + 1, map.qlen); + memmove(map.queue, map.queue + 1, map.qlen); } /* remove the nomap flag */ diff --git a/src/normal.c b/src/normal.c index 540f58e..210e38b 100644 --- a/src/normal.c +++ b/src/normal.c @@ -316,7 +316,7 @@ void normal_showcmd(int c) extra = strlen(translated); overflow = old + extra - SHOWCMD_LEN; if (overflow > 0) { - g_memmove(showcmd_buf, showcmd_buf + overflow, old - overflow + 1); + memmove(showcmd_buf, showcmd_buf + overflow, old - overflow + 1); } strcat(showcmd_buf, translated); } else {