Fossil

Check-in [2bb3a8e1]
Login

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

Overview
Comment:Fix a C99-ism introduced by check-in [27c8985cc1b75cf5].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2bb3a8e10d61902a3f9a7007af32da27b338bf8b
User & Date: mistachkin 2016-10-28 22:45:27
Context
2016-10-28
22:51
merge fork. check-in: cf2adc71 user: mgagnon tags: trunk
22:45
Fix a C99-ism introduced by check-in [27c8985cc1b75cf5]. check-in: 2bb3a8e1 user: mistachkin tags: trunk
05:29
Alternative to check-in [a4bb89ba08], make FuseFS act just like the JSON feature in 'auto.def'. check-in: feb202f5 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/export.c.

556
557
558
559
560
561
562
563
564

565
566
567
568
569
570
571
    while( db_step(&q4)==SQLITE_ROW ){
      const char *zName = db_column_text(&q4,0);
      int zNew = db_column_int(&q4,1);
      int mPerm = db_column_int(&q4,2);
      if( zNew==0 ){
        printf("D %s\n", zName);
      }else if( bag_find(&blobs, zNew) ){
        zMark = mark_name_from_rid(zNew, &unused_mark);
        const char *zPerm;

        switch( mPerm ){
          case PERM_LNK:  zPerm = "120000";   break;
          case PERM_EXE:  zPerm = "100755";   break;
          default:        zPerm = "100644";   break;
        }
        printf("M %s %s %s\n", zPerm, zMark, zName);
        free(zMark);







<

>







556
557
558
559
560
561
562

563
564
565
566
567
568
569
570
571
    while( db_step(&q4)==SQLITE_ROW ){
      const char *zName = db_column_text(&q4,0);
      int zNew = db_column_int(&q4,1);
      int mPerm = db_column_int(&q4,2);
      if( zNew==0 ){
        printf("D %s\n", zName);
      }else if( bag_find(&blobs, zNew) ){

        const char *zPerm;
        zMark = mark_name_from_rid(zNew, &unused_mark);
        switch( mPerm ){
          case PERM_LNK:  zPerm = "120000";   break;
          case PERM_EXE:  zPerm = "100755";   break;
          default:        zPerm = "100644";   break;
        }
        printf("M %s %s %s\n", zPerm, zMark, zName);
        free(zMark);