1
0
mirror of https://github.com/rfivet/uemacs.git synced 2025-11-23 11:41:15 -05:00

Fix warning triggered by enforcing const on function names table.

This commit is contained in:
2021-07-19 16:36:14 +08:00
parent 92c9208cd4
commit 00b85fab9f
3 changed files with 5 additions and 6 deletions

3
exec.c
View File

@@ -348,7 +348,6 @@ boolean gettokval( char *tok, int size) {
char *getnewtokval( void) {
char *tmpbuf ;
char *tmpval ;
char *valbuf ;
/* grab token and advance past */
@@ -357,7 +356,7 @@ char *getnewtokval( void) {
return NULL ;
/* evaluate it */
tmpval = getval( tmpbuf) ;
const char *tmpval = getval( tmpbuf) ;
valbuf = malloc( strlen( tmpval) + 1 ) ;
if( valbuf != NULL)
strcpy( valbuf, tmpval) ;