Fossil

Check-in [2fc8222f]
Login

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

Overview
Comment:Fix compiler warning seen with MSVC.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2fc8222f8285dd634724a6132319a939176577e1
User & Date: mistachkin 2016-05-28 02:37:31
Context
2016-05-28
22:58
Improve the header comment on from/to timeline to show the number of check-ins on the path. check-in: 6d1ef3c4 user: drh tags: trunk
21:23
Enhancements to SEE integration. check-in: 4e34191c user: mistachkin tags: seeEnhanced
02:37
Fix compiler warning seen with MSVC. check-in: 2fc8222f user: mistachkin tags: trunk
02:37
Improve SEE (shell) support in the build process. check-in: cc828822 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/setup.c.

490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
    for(i=0; zCap[i]; i++){
      char c = zCap[i];
      if( c>='a' && c<='z' ) oa[c&0x7f] = " checked=\"checked\"";
    }
  }

  /* figure out inherited permissions */
  memset(inherit, 0, sizeof(inherit));
  if( fossil_strcmp(zLogin, "developer") ){
    char *z1, *z2;
    z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'");
    while( z1 && *z1 ){
      inherit[0x7f & *(z1++)] =
         "<span class=\"ueditInheritDeveloper\"><sub>[D]</sub></span>";
    }







|







490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
    for(i=0; zCap[i]; i++){
      char c = zCap[i];
      if( c>='a' && c<='z' ) oa[c&0x7f] = " checked=\"checked\"";
    }
  }

  /* figure out inherited permissions */
  memset((char *)inherit, 0, sizeof(inherit));
  if( fossil_strcmp(zLogin, "developer") ){
    char *z1, *z2;
    z1 = z2 = db_text(0,"SELECT cap FROM user WHERE login='developer'");
    while( z1 && *z1 ){
      inherit[0x7f & *(z1++)] =
         "<span class=\"ueditInheritDeveloper\"><sub>[D]</sub></span>";
    }