[Ttssh2-commit] [6696] Port で namedpipe を指定 / 保存する必要性が無いため廃止。tcpip 相当とする。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2017年 4月 24日 (月) 20:50:06 JST


Revision: 6696
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6696
Author:   doda
Date:     2017-04-24 20:50:06 +0900 (Mon, 24 Apr 2017)
Log Message:
-----------
Port で namedpipe を指定/保存する必要性が無いため廃止。tcpip 相当とする。

Modified Paths:
--------------
    trunk/installer/release/TERATERM.INI
    trunk/teraterm/ttpset/ttset.c

-------------- next part --------------
Modified: trunk/installer/release/TERATERM.INI
===================================================================
--- trunk/installer/release/TERATERM.INI	2017-04-24 11:50:03 UTC (rev 6695)
+++ trunk/installer/release/TERATERM.INI	2017-04-24 11:50:06 UTC (rev 6696)
@@ -124,7 +124,7 @@
 ; Background color of text uses background color of screen (on/off)
 UseNormalBGColor=on
 
-;	Port type (serial/tcpip/namedpipe)
+;	Port type (serial/tcpip)
 Port=tcpip
 
 ;	Window positions

Modified: trunk/teraterm/ttpset/ttset.c
===================================================================
--- trunk/teraterm/ttpset/ttset.c	2017-04-24 11:50:03 UTC (rev 6695)
+++ trunk/teraterm/ttpset/ttset.c	2017-04-24 11:50:06 UTC (rev 6696)
@@ -553,12 +553,8 @@
 	/* Port type */
 	GetPrivateProfileString(Section, "Port", "",
 	                        Temp, sizeof(Temp), FName);
-	if (_stricmp(Temp, "tcpip") == 0)
-		ts->PortType = IdTCPIP;
-	else if (_stricmp(Temp, "serial") == 0)
+	if (_stricmp(Temp, "serial") == 0)
 		ts->PortType = IdSerial;
-	else if (_stricmp(Temp, "namedpipe") == 0)
-		ts->PortType = IdNamedPipe;
 	else {
 		ts->PortType = IdTCPIP;
 	}
@@ -1986,15 +1982,8 @@
 	WritePrivateProfileString(Section, "Language", Temp, FName);
 
 	/* Port type */
-	if (ts->PortType == IdSerial)
-		strncpy_s(Temp, sizeof(Temp), "serial", _TRUNCATE);
-	else if (ts->PortType == IdNamedPipe)
-		strncpy_s(Temp, sizeof(Temp), "namedpipe", _TRUNCATE);
-	else						/* IdFile -> IdTCPIP */
-		strncpy_s(Temp, sizeof(Temp), "tcpip", _TRUNCATE);
+	WritePrivateProfileString(Section, "Port", (ts->PortType==IdSerial)?"serial":"tcpip", FName);
 
-	WritePrivateProfileString(Section, "Port", Temp, FName);
-
 	/* Save win position */
 	if (ts->SaveVTWinPos) {
 		/* VT win position */



Ttssh2-commit メーリングリストの案内
Back to archive index