Fossil SCM
Make manifest_file_mperm() parameter const.
Commit
58600bc1a59ced34e26d689137fc68d2ae385e0647a48e641a8eafb51843873b
Parent
c3ae6b349637278…
1 file changed
+1
-1
+1
-1
| --- src/manifest.c | ||
| +++ src/manifest.c | ||
| @@ -1327,11 +1327,11 @@ | ||
| 1327 | 1327 | |
| 1328 | 1328 | /* |
| 1329 | 1329 | ** Compute an appropriate mlink.mperm integer for the permission string |
| 1330 | 1330 | ** of a file. |
| 1331 | 1331 | */ |
| 1332 | -int manifest_file_mperm(ManifestFile *pFile){ | |
| 1332 | +int manifest_file_mperm(const ManifestFile *pFile){ | |
| 1333 | 1333 | int mperm = PERM_REG; |
| 1334 | 1334 | if( pFile && pFile->zPerm){ |
| 1335 | 1335 | if( strstr(pFile->zPerm,"x")!=0 ){ |
| 1336 | 1336 | mperm = PERM_EXE; |
| 1337 | 1337 | }else if( strstr(pFile->zPerm,"l")!=0 ){ |
| 1338 | 1338 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1327,11 +1327,11 @@ | |
| 1327 | |
| 1328 | /* |
| 1329 | ** Compute an appropriate mlink.mperm integer for the permission string |
| 1330 | ** of a file. |
| 1331 | */ |
| 1332 | int manifest_file_mperm(ManifestFile *pFile){ |
| 1333 | int mperm = PERM_REG; |
| 1334 | if( pFile && pFile->zPerm){ |
| 1335 | if( strstr(pFile->zPerm,"x")!=0 ){ |
| 1336 | mperm = PERM_EXE; |
| 1337 | }else if( strstr(pFile->zPerm,"l")!=0 ){ |
| 1338 |
| --- src/manifest.c | |
| +++ src/manifest.c | |
| @@ -1327,11 +1327,11 @@ | |
| 1327 | |
| 1328 | /* |
| 1329 | ** Compute an appropriate mlink.mperm integer for the permission string |
| 1330 | ** of a file. |
| 1331 | */ |
| 1332 | int manifest_file_mperm(const ManifestFile *pFile){ |
| 1333 | int mperm = PERM_REG; |
| 1334 | if( pFile && pFile->zPerm){ |
| 1335 | if( strstr(pFile->zPerm,"x")!=0 ){ |
| 1336 | mperm = PERM_EXE; |
| 1337 | }else if( strstr(pFile->zPerm,"l")!=0 ){ |
| 1338 |