diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-18 10:10:03 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-18 10:10:03 +0200 |
commit | 8bdd462b50b7930c94cd7c59ac068934f60cffcf (patch) | |
tree | fb65265a21ae96be3f062de20615c1dee951c0a8 /lib/fsm.h | |
parent | 28723cae06d49e4ba2401199da47763b1fc28ef8 (diff) | |
download | librpm-tizen-8bdd462b50b7930c94cd7c59ac068934f60cffcf.tar.gz librpm-tizen-8bdd462b50b7930c94cd7c59ac068934f60cffcf.tar.bz2 librpm-tizen-8bdd462b50b7930c94cd7c59ac068934f60cffcf.zip |
Make fsm failedFile non-const like it really is
- callers need to free it so const is wrong
- cast away the hardlink-hackery in fsm instead
Diffstat (limited to 'lib/fsm.h')
-rw-r--r-- | lib/fsm.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -131,7 +131,7 @@ struct fsm_s { hardLink_t links; /*!< Pending hard linked file(s). */ hardLink_t li; /*!< Current hard linked file(s). */ unsigned int * archiveSize; /*!< Pointer to archive size. */ - const char ** failedFile; /*!< First file name that failed. */ + char ** failedFile; /*!< First file name that failed. */ const char * subdir; /*!< Current file sub-directory. */ char subbuf[64]; /* XXX eliminate */ const char * osuffix; /*!< Old, preserved, file suffix. */ @@ -204,7 +204,7 @@ FSM_t freeFSM(FSM_t fsm); * @param fi transaction element file info * @param cfd * @retval archiveSize pointer to archive size - * @retval failedFile pointer to first file name that failed. + * @retval failedFile pointer to first file name that failed (malloced) * @return 0 on success */ int fsmSetup(FSM_t fsm, fileStage goal, @@ -212,7 +212,7 @@ int fsmSetup(FSM_t fsm, fileStage goal, const rpmfi fi, FD_t cfd, unsigned int * archiveSize, - const char ** failedFile); + char ** failedFile); /** * Clean file state machine. |