Fossil SCM

Make manifest_file_mperm() parameter const.

stephan 2020-04-30 15:58 UTC checkin-without-checkout
Commit 58600bc1a59ced34e26d689137fc68d2ae385e0647a48e641a8eafb51843873b
1 file changed +1 -1
+1 -1
--- src/manifest.c
+++ src/manifest.c
@@ -1327,11 +1327,11 @@
13271327
13281328
/*
13291329
** Compute an appropriate mlink.mperm integer for the permission string
13301330
** of a file.
13311331
*/
1332
-int manifest_file_mperm(ManifestFile *pFile){
1332
+int manifest_file_mperm(const ManifestFile *pFile){
13331333
int mperm = PERM_REG;
13341334
if( pFile && pFile->zPerm){
13351335
if( strstr(pFile->zPerm,"x")!=0 ){
13361336
mperm = PERM_EXE;
13371337
}else if( strstr(pFile->zPerm,"l")!=0 ){
13381338
--- 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

Keyboard Shortcuts

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