summaryrefslogtreecommitdiff
path: root/lib/fsm.h
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-01-17 10:52:46 +0200
committerPanu Matilainen <pmatilai@redhat.com>2012-01-17 10:52:46 +0200
commit680c3cfbf7d72a1a872b1cd5b52892c5392b52e4 (patch)
tree7c7fb686734622c4cf68a6de716407a8363d892e /lib/fsm.h
parentff743250885123fc6666be38df59818fcb60cf82 (diff)
downloadlibrpm-tizen-680c3cfbf7d72a1a872b1cd5b52892c5392b52e4.tar.gz
librpm-tizen-680c3cfbf7d72a1a872b1cd5b52892c5392b52e4.tar.bz2
librpm-tizen-680c3cfbf7d72a1a872b1cd5b52892c5392b52e4.zip
Eliminate FSM_ROPEN, FSM_READ and FSM_RCLOSE stages
- These are nothing but unnecessarily specialized Fopen(), Fread() and Fclose() for what is a purely local need in writeFile(). Move the local stuff where it belongs.
Diffstat (limited to 'lib/fsm.h')
-rw-r--r--lib/fsm.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/fsm.h b/lib/fsm.h
index a589bfddb..ee3f1a394 100644
--- a/lib/fsm.h
+++ b/lib/fsm.h
@@ -74,9 +74,6 @@ typedef enum fileStage_e {
FSM_DREAD = _fs(72),
FSM_DWRITE = _fs(73),
- FSM_ROPEN = _fs(129),
- FSM_READ = _fs(130),
- FSM_RCLOSE = _fs(131),
FSM_WOPEN = _fs(132),
FSM_WRITE = _fs(133),
FSM_WCLOSE = _fs(134)
@@ -114,11 +111,9 @@ typedef struct hardLink_s * hardLink_t;
struct fsm_s {
char * path; /*!< Current file name. */
FD_t cfd; /*!< Payload file handle. */
- FD_t rfd; /*!< read: File handle. */
char * rdbuf; /*!< read: Buffer. */
char * rdb; /*!< read: Buffer allocated. */
size_t rdsize; /*!< read: Buffer allocated size. */
- size_t rdlen; /*!< read: Number of bytes requested.*/
size_t rdnb; /*!< read: Number of bytes returned. */
FD_t wfd; /*!< write: File handle. */
char * wrbuf; /*!< write: Buffer. */