Fossil SCM

Still more fixes for harmless compiler warnings.

drh 2014-12-01 21:36 UTC DBP-workflow
Commit 3753b87d949a77f14e731df1709abe2828b67279
2 files changed +1 +1 -2
--- src/mkversion.c
+++ src/mkversion.c
@@ -7,10 +7,11 @@
77
**
88
** Note that the manifest.uuid and manifest files are generated by Fossil.
99
*/
1010
#include <stdio.h>
1111
#include <string.h>
12
+#include <stdlib.h>
1213
1314
int main(int argc, char *argv[]){
1415
FILE *m,*u,*v;
1516
char *z;
1617
int i, x, d;
1718
--- src/mkversion.c
+++ src/mkversion.c
@@ -7,10 +7,11 @@
7 **
8 ** Note that the manifest.uuid and manifest files are generated by Fossil.
9 */
10 #include <stdio.h>
11 #include <string.h>
 
12
13 int main(int argc, char *argv[]){
14 FILE *m,*u,*v;
15 char *z;
16 int i, x, d;
17
--- src/mkversion.c
+++ src/mkversion.c
@@ -7,10 +7,11 @@
7 **
8 ** Note that the manifest.uuid and manifest files are generated by Fossil.
9 */
10 #include <stdio.h>
11 #include <string.h>
12 #include <stdlib.h>
13
14 int main(int argc, char *argv[]){
15 FILE *m,*u,*v;
16 char *z;
17 int i, x, d;
18
+1 -2
--- src/name.c
+++ src/name.c
@@ -416,13 +416,12 @@
416416
rid = symbolic_name_to_rid(zName, zType);
417417
if( rid<0 ){
418418
fossil_fatal("ambiguous name: %s", zName);
419419
}else if( rid==0 ){
420420
fossil_fatal("not found: %s", zName);
421
- }else{
422
- return rid;
423421
}
422
+ return rid;
424423
}
425424
int name_to_rid(const char *zName){
426425
return name_to_typed_rid(zName, "*");
427426
}
428427
429428
--- src/name.c
+++ src/name.c
@@ -416,13 +416,12 @@
416 rid = symbolic_name_to_rid(zName, zType);
417 if( rid<0 ){
418 fossil_fatal("ambiguous name: %s", zName);
419 }else if( rid==0 ){
420 fossil_fatal("not found: %s", zName);
421 }else{
422 return rid;
423 }
 
424 }
425 int name_to_rid(const char *zName){
426 return name_to_typed_rid(zName, "*");
427 }
428
429
--- src/name.c
+++ src/name.c
@@ -416,13 +416,12 @@
416 rid = symbolic_name_to_rid(zName, zType);
417 if( rid<0 ){
418 fossil_fatal("ambiguous name: %s", zName);
419 }else if( rid==0 ){
420 fossil_fatal("not found: %s", zName);
 
 
421 }
422 return rid;
423 }
424 int name_to_rid(const char *zName){
425 return name_to_typed_rid(zName, "*");
426 }
427
428

Keyboard Shortcuts

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