Fossil SCM

Fix harmless compiler warnings.

drh 2015-05-18 14:33 trunk
Commit b51dcc316218021d8ff34f7a87bf2d254e8befda
2 files changed +5 -5 +2 -2
+5 -5
--- src/translate.c
+++ src/translate.c
@@ -40,15 +40,15 @@
4040
** rather than text that is to be output via cgi_printf(). Render it
4141
** as such.
4242
**
4343
** Enhancement #2:
4444
**
45
-** Comments of the form: "/* @-comment: CC" cause CC to become a
46
-** comment character for the @-substitution. Typical values for CC are
47
-** "--" (for SQL text) or "#" (for Tcl script) or "//" (for C++ code).
48
-** Lines of subsequent @-blocks that begin with CC are omitted from the
49
-** output.
45
+** Comments of the form: "|* @-comment: CC" (where "|" is really "/")
46
+** cause CC to become a comment character for the @-substitution.
47
+** Typical values for CC are "--" (for SQL text) or "#" (for Tcl script)
48
+** or "//" (for C++ code). Lines of subsequent @-blocks that begin with
49
+** CC are omitted from the output.
5050
**
5151
*/
5252
#include <stdio.h>
5353
#include <ctype.h>
5454
#include <stdlib.h>
5555
--- src/translate.c
+++ src/translate.c
@@ -40,15 +40,15 @@
40 ** rather than text that is to be output via cgi_printf(). Render it
41 ** as such.
42 **
43 ** Enhancement #2:
44 **
45 ** Comments of the form: "/* @-comment: CC" cause CC to become a
46 ** comment character for the @-substitution. Typical values for CC are
47 ** "--" (for SQL text) or "#" (for Tcl script) or "//" (for C++ code).
48 ** Lines of subsequent @-blocks that begin with CC are omitted from the
49 ** output.
50 **
51 */
52 #include <stdio.h>
53 #include <ctype.h>
54 #include <stdlib.h>
55
--- src/translate.c
+++ src/translate.c
@@ -40,15 +40,15 @@
40 ** rather than text that is to be output via cgi_printf(). Render it
41 ** as such.
42 **
43 ** Enhancement #2:
44 **
45 ** Comments of the form: "|* @-comment: CC" (where "|" is really "/")
46 ** cause CC to become a comment character for the @-substitution.
47 ** Typical values for CC are "--" (for SQL text) or "#" (for Tcl script)
48 ** or "//" (for C++ code). Lines of subsequent @-blocks that begin with
49 ** CC are omitted from the output.
50 **
51 */
52 #include <stdio.h>
53 #include <ctype.h>
54 #include <stdlib.h>
55
+2 -2
--- src/update.c
+++ src/update.c
@@ -602,12 +602,12 @@
602602
for(i=0; zEmptyDirs[i]; i++){
603603
if( zEmptyDirs[i]==',' ) zEmptyDirs[i] = ' ';
604604
}
605605
blob_init(&dirsList, zEmptyDirs, -1);
606606
while( blob_token(&dirsList, &dirName) ){
607
- const char *zDir = blob_str(&dirName);
608
- const char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir);
607
+ char *zDir = blob_str(&dirName);
608
+ char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir);
609609
switch( file_wd_isdir(zPath) ){
610610
case 0: { /* doesn't exist */
611611
fossil_free(zPath);
612612
zPath = mprintf("%s/%s/x", g.zLocalRoot, zDir);
613613
if( file_mkfolder(zPath, 0, 1)!=0 ) {
614614
--- src/update.c
+++ src/update.c
@@ -602,12 +602,12 @@
602 for(i=0; zEmptyDirs[i]; i++){
603 if( zEmptyDirs[i]==',' ) zEmptyDirs[i] = ' ';
604 }
605 blob_init(&dirsList, zEmptyDirs, -1);
606 while( blob_token(&dirsList, &dirName) ){
607 const char *zDir = blob_str(&dirName);
608 const char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir);
609 switch( file_wd_isdir(zPath) ){
610 case 0: { /* doesn't exist */
611 fossil_free(zPath);
612 zPath = mprintf("%s/%s/x", g.zLocalRoot, zDir);
613 if( file_mkfolder(zPath, 0, 1)!=0 ) {
614
--- src/update.c
+++ src/update.c
@@ -602,12 +602,12 @@
602 for(i=0; zEmptyDirs[i]; i++){
603 if( zEmptyDirs[i]==',' ) zEmptyDirs[i] = ' ';
604 }
605 blob_init(&dirsList, zEmptyDirs, -1);
606 while( blob_token(&dirsList, &dirName) ){
607 char *zDir = blob_str(&dirName);
608 char *zPath = mprintf("%s/%s", g.zLocalRoot, zDir);
609 switch( file_wd_isdir(zPath) ){
610 case 0: { /* doesn't exist */
611 fossil_free(zPath);
612 zPath = mprintf("%s/%s/x", g.zLocalRoot, zDir);
613 if( file_mkfolder(zPath, 0, 1)!=0 ) {
614

Keyboard Shortcuts

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