[Ttssh2-commit] [8259] コンパイル時の警告を修正

scmno****@osdn***** scmno****@osdn*****
2019年 10月 5日 (土) 22:51:32 JST


Revision: 8259
          https://osdn.net/projects/ttssh2/scm/svn/commits/8259
Author:   zmatsuo
Date:     2019-10-05 22:51:32 +0900 (Sat, 05 Oct 2019)
Log Message:
-----------
コンパイル時の警告を修正

- r8240 の変更がきっかけ
- UTIL_get_lang_msg() の引数に const を追加

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/8240

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/util.c
    trunk/ttssh2/ttxssh/util.h

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/util.c
===================================================================
--- trunk/ttssh2/ttxssh/util.c	2019-10-05 11:50:06 UTC (rev 8258)
+++ trunk/ttssh2/ttxssh/util.c	2019-10-05 13:51:32 UTC (rev 8259)
@@ -314,7 +314,7 @@
 	return buf->buflen / 2 < buf->datalen;
 }
 
-void UTIL_get_lang_msg(PCHAR key, PTInstVar pvar, PCHAR def)
+void UTIL_get_lang_msg(const char *key, PTInstVar pvar, const char *def)
 {
 	GetI18nStr("TTSSH", key, pvar->ts->UIMsg, sizeof(pvar->ts->UIMsg),
 		def, pvar->ts->UILanguageFile);

Modified: trunk/ttssh2/ttxssh/util.h
===================================================================
--- trunk/ttssh2/ttxssh/util.h	2019-10-05 11:50:06 UTC (rev 8258)
+++ trunk/ttssh2/ttxssh/util.h	2019-10-05 13:51:32 UTC (rev 8259)
@@ -84,7 +84,7 @@
 void UTIL_destroy_sock_write_buf(UTILSockWriteBuf *buf);
 BOOL UTIL_is_sock_deeply_buffered(UTILSockWriteBuf *buf);
 
-void UTIL_get_lang_msg(PCHAR key, PTInstVar pvar, PCHAR def);
+void UTIL_get_lang_msg(const char *key, PTInstVar pvar, const char *def);
 HFONT UTIL_get_lang_fixedfont(HWND hWnd, const char *UILanguageFile);
 
 #endif


Ttssh2-commit メーリングリストの案内