[syslinux:master] ntfs: Make byte_shift a const

syslinux-bot for H. Peter Anvin hpa at zytor.com
Thu Mar 13 20:12:03 PDT 2014


Commit-ID:  2df4a6b5fe41301535694315dda17a2af20d4dc9
Gitweb:     http://www.syslinux.org/commit/2df4a6b5fe41301535694315dda17a2af20d4dc9
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Thu, 13 Mar 2014 20:09:22 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Thu, 13 Mar 2014 20:09:22 -0700

ntfs: Make byte_shift a const

byte_shift is a constant, label it as such.

Signed-off-by: H. Peter Anvin <hpa at zytor.com>

---
 core/fs/ntfs/ntfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/fs/ntfs/ntfs.c b/core/fs/ntfs/ntfs.c
index af00447..4e6de65 100644
--- a/core/fs/ntfs/ntfs.c
+++ b/core/fs/ntfs/ntfs.c
@@ -350,7 +350,7 @@ static int parse_data_run(const void *stream, uint32_t *offset,
                      * l is the number of changed low-order LCN bytes
                      */
     uint8_t *byte;
-    int byte_shift = 8;
+    const int byte_shift = 8;
     int mask;
     int64_t res;
 


More information about the Syslinux-commits mailing list