diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-16 20:39:46 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-16 20:39:46 +0200 |
commit | 35d4663a0dae9abfc6a533bb00d1ee100f477beb (patch) | |
tree | 9251a3791b7e280caa7421c010fef4fc94c2c9a2 /build | |
parent | 4ab5affca9c78a8e7f3bfc4af738722db1b93bfa (diff) | |
download | rpm-35d4663a0dae9abfc6a533bb00d1ee100f477beb.tar.gz rpm-35d4663a0dae9abfc6a533bb00d1ee100f477beb.tar.bz2 rpm-35d4663a0dae9abfc6a533bb00d1ee100f477beb.zip |
Unconstify FileListRec and AttrRec contents
- not exposed outside files.c
Diffstat (limited to 'build')
-rw-r--r-- | build/files.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/build/files.c b/build/files.c index bfadb3f24..d523f9808 100644 --- a/build/files.c +++ b/build/files.c @@ -67,23 +67,23 @@ typedef struct FileListRec_s { #define fl_size fl_st.st_size #define fl_mtime fl_st.st_mtime - const char *diskURL; /* get file from here */ - const char *fileURL; /* filename in cpio archive */ + char *diskURL; /* get file from here */ + char *fileURL; /* filename in cpio archive */ const char *uname; const char *gname; unsigned flags; specdFlags specdFlags; /* which attributes have been explicitly specified. */ unsigned verifyFlags; - const char *langs; /* XXX locales separated with | */ + char *langs; /* XXX locales separated with | */ } * FileListRec; /** */ typedef struct AttrRec_s { - const char *ar_fmodestr; - const char *ar_dmodestr; - const char *ar_user; - const char *ar_group; + char *ar_fmodestr; + char *ar_dmodestr; + char *ar_user; + char *ar_group; mode_t ar_fmode; mode_t ar_dmode; } * AttrRec; @@ -97,8 +97,8 @@ static StringBuf check_fileList = NULL; * Package file tree walk data. */ typedef struct FileList_s { - const char * buildRootURL; - const char * prefix; + char * buildRootURL; + char * prefix; int fileCount; int totalFileSize; @@ -122,11 +122,11 @@ typedef struct FileList_s { specdFlags defSpecdFlags; int defVerifyFlags; int nLangs; - const char ** currentLangs; + char ** currentLangs; /* Hard coded limit of MAXDOCDIR docdirs. */ /* If you break it you are doing something wrong. */ - const char * docDirs[MAXDOCDIR]; + char * docDirs[MAXDOCDIR]; int docDirCount; FileListRec fileList; |