From f368d5da79a47c7bed2f80ffff912e933d2f491a Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Wed, 10 Apr 2013 13:53:14 +0300 Subject: [PATCH] Changed years in license comment --- src/cpp/jssc_SerialNativeInterface.h | 2 +- src/cpp/windows/jssc.c++ | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cpp/jssc_SerialNativeInterface.h b/src/cpp/jssc_SerialNativeInterface.h index 259da67..1f7859c 100644 --- a/src/cpp/jssc_SerialNativeInterface.h +++ b/src/cpp/jssc_SerialNativeInterface.h @@ -1,5 +1,5 @@ /* jSSC (Java Simple Serial Connector) - serial port communication library. - * © Alexey Sokolov (scream3r), 2010-2011. + * © Alexey Sokolov (scream3r), 2010-2013. * * This file is part of jSSC. * diff --git a/src/cpp/windows/jssc.c++ b/src/cpp/windows/jssc.c++ index b64d3c7..170e6df 100644 --- a/src/cpp/windows/jssc.c++ +++ b/src/cpp/windows/jssc.c++ @@ -1,5 +1,5 @@ /* jSSC (Java Simple Serial Connector) - serial port communication library. - * © Alexey Sokolov (scream3r), 2010-2011. + * © Alexey Sokolov (scream3r), 2010-2013. * * This file is part of jSSC. * @@ -36,11 +36,11 @@ JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, job char prefix[] = "\\\\.\\"; const char* port = env->GetStringUTFChars(portName, JNI_FALSE); - //-> Since 2.1.0 string concat fix + //since 2.1.0 -> string concat fix char portFullName[strlen(prefix) + strlen(port) + 1]; strcpy(portFullName, prefix); strcat(portFullName, port); - //<- Since 2.1.0 + //<- since 2.1.0 HANDLE hComm; hComm = CreateFile(portFullName, @@ -114,7 +114,7 @@ JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setParams if(SetCommState(hComm, dcb)){ - //-> Since 2.1.0 previously setted timeouts by another application should be cleared + //since 2.1.0 -> previously setted timeouts by another application should be cleared COMMTIMEOUTS *lpCommTimeouts = new COMMTIMEOUTS(); lpCommTimeouts->ReadIntervalTimeout = 0; lpCommTimeouts->ReadTotalTimeoutConstant = 0; @@ -125,7 +125,7 @@ JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setParams returnValue = JNI_TRUE; } delete lpCommTimeouts; - //<- Since 2.1.0 + //<- since 2.1.0 } } delete dcb;