Fossil

Check-in [7a93cd88]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Cast strlen to int to avoid a compiler error and to be consitent elsewhere.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | roy-export
Files: files | file ages | folders
SHA1: 7a93cd883bda736f1160bd3c9d31036b20755bd8
User & Date: roy.marples 2017-02-21 22:18:14
Context
2017-04-03
11:33
Use the (existing) 'T' card in stead of an (incompatible) 'C' card, to store GIT's Tag comment. Closed-Leaf check-in: f2e075b9 user: jan.nijtmans tags: roy-export
2017-02-22
09:49
Merge stripping end-of-line change from "roy-export" branch Closed-Leaf check-in: bd65092f user: jan.nijtmans tags: jn-export
2017-02-21
22:18
Cast strlen to int to avoid a compiler error and to be consitent elsewhere. check-in: 7a93cd88 user: roy.marples tags: roy-export
21:36
Only strip trailing newline when importing comments. check-in: 0e4bf2ca user: roy.marples tags: roy-export
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/export.c.

716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
    printf("tag ");
    print_ref(zTagname);
    printf("\nfrom %s\n", zMark);
    free(zMark);
    printf("tagger");
    print_person(zUser);
    printf(" %s +0000\n", zSecSince1970);
    printf("data %d\n", zComment==NULL?0:strlen(zComment)+1);
    if( zComment!=NULL ) printf("%s\n",zComment);
  }
  db_finalize(&q);

  if( markfile_out!=0 ){
    FILE *f;
    f = fossil_fopen(markfile_out, "w");







|







716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
    printf("tag ");
    print_ref(zTagname);
    printf("\nfrom %s\n", zMark);
    free(zMark);
    printf("tagger");
    print_person(zUser);
    printf(" %s +0000\n", zSecSince1970);
    printf("data %d\n", zComment==NULL?0:(int)strlen(zComment)+1);
    if( zComment!=NULL ) printf("%s\n",zComment);
  }
  db_finalize(&q);

  if( markfile_out!=0 ){
    FILE *f;
    f = fossil_fopen(markfile_out, "w");