Fossil SCM
superflueous semicolon.
Commit
6f3b0f344510f684b5b73a3925c6d63f5f3346d5
Parent
b4bab791fc54dcd…
1 file changed
+2
-2
+2
-2
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -1118,11 +1118,11 @@ | ||
| 1118 | 1118 | } |
| 1119 | 1119 | |
| 1120 | 1120 | /* |
| 1121 | 1121 | ** Display UTF8 on the console. Return the number of |
| 1122 | 1122 | ** 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 | |
| 1124 | 1124 | ** to the console. |
| 1125 | 1125 | */ |
| 1126 | 1126 | int fossil_utf8_to_console(const char *zUtf8, int nByte, int toStdErr){ |
| 1127 | 1127 | #ifdef _WIN32 |
| 1128 | 1128 | int nChar; |
| @@ -1149,11 +1149,11 @@ | ||
| 1149 | 1149 | nChar = MultiByteToWideChar(CP_UTF8, 0, zUtf8, nByte, zUnicode, nChar); |
| 1150 | 1150 | if( nChar==0 ){ |
| 1151 | 1151 | free(zUnicode); |
| 1152 | 1152 | return 0; |
| 1153 | 1153 | } |
| 1154 | - zUnicode[nChar] = '\0';; | |
| 1154 | + zUnicode[nChar] = '\0'; | |
| 1155 | 1155 | WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE - toStdErr), zUnicode, nChar, &dummy, 0); |
| 1156 | 1156 | return nChar; |
| 1157 | 1157 | #else |
| 1158 | 1158 | return -1; /* No-op on unix */ |
| 1159 | 1159 | #endif |
| 1160 | 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 |
| --- 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 |