summaryrefslogtreecommitdiff
path: root/lib/fsm.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-18 10:10:03 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-18 10:10:03 +0200
commit8bdd462b50b7930c94cd7c59ac068934f60cffcf (patch)
treefb65265a21ae96be3f062de20615c1dee951c0a8 /lib/fsm.h
parent28723cae06d49e4ba2401199da47763b1fc28ef8 (diff)
downloadlibrpm-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fsm.h b/lib/fsm.h
index aff13a9db..9e7450324 100644
--- a/lib/fsm.h
+++ b/lib/fsm.h
@@ -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.