Fossil SCM

superflueous semicolon.

jan.nijtmans 2012-09-05 09:05 eclipse-project
Commit 6f3b0f344510f684b5b73a3925c6d63f5f3346d5
1 file changed +2 -2
+2 -2
--- src/file.c
+++ src/file.c
@@ -1118,11 +1118,11 @@
11181118
}
11191119
11201120
/*
11211121
** Display UTF8 on the console. Return the number of
11221122
** Characters written. If stdout or stderr is redirected
1123
-** to a file, -1 is returned and ** nothing is written
1123
+** to a file, -1 is returned and nothing is written
11241124
** to the console.
11251125
*/
11261126
int fossil_utf8_to_console(const char *zUtf8, int nByte, int toStdErr){
11271127
#ifdef _WIN32
11281128
int nChar;
@@ -1149,11 +1149,11 @@
11491149
nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar);
11501150
if( nChar==0 ){
11511151
free(zUnicode);
11521152
return 0;
11531153
}
1154
- zUnicode[nChar] = '\0';;
1154
+ zUnicode[nChar] = '\0';
11551155
WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE - toStdErr), zUnicode, nChar, &dummy, 0);
11561156
return nChar;
11571157
#else
11581158
return -1; /* No-op on unix */
11591159
#endif
11601160
--- src/file.c
+++ src/file.c
@@ -1118,11 +1118,11 @@
1118 }
1119
1120 /*
1121 ** Display UTF8 on the console. Return the number of
1122 ** Characters written. If stdout or stderr is redirected
1123 ** to a file, -1 is returned and ** nothing is written
1124 ** to the console.
1125 */
1126 int fossil_utf8_to_console(const char *zUtf8, int nByte, int toStdErr){
1127 #ifdef _WIN32
1128 int nChar;
@@ -1149,11 +1149,11 @@
1149 nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar);
1150 if( nChar==0 ){
1151 free(zUnicode);
1152 return 0;
1153 }
1154 zUnicode[nChar] = '\0';;
1155 WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE - toStdErr), zUnicode, nChar, &dummy, 0);
1156 return nChar;
1157 #else
1158 return -1; /* No-op on unix */
1159 #endif
1160
--- src/file.c
+++ src/file.c
@@ -1118,11 +1118,11 @@
1118 }
1119
1120 /*
1121 ** Display UTF8 on the console. Return the number of
1122 ** Characters written. If stdout or stderr is redirected
1123 ** to a file, -1 is returned and nothing is written
1124 ** to the console.
1125 */
1126 int fossil_utf8_to_console(const char *zUtf8, int nByte, int toStdErr){
1127 #ifdef _WIN32
1128 int nChar;
@@ -1149,11 +1149,11 @@
1149 nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar);
1150 if( nChar==0 ){
1151 free(zUnicode);
1152 return 0;
1153 }
1154 zUnicode[nChar] = '\0';
1155 WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE - toStdErr), zUnicode, nChar, &dummy, 0);
1156 return nChar;
1157 #else
1158 return -1; /* No-op on unix */
1159 #endif
1160

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button