Fix totally broken Fflush() operation
authorPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Fri, 8 Jul 2011 11:48:54 +0000 (14:48 +0300)
committerPanu Matilainen <Panu Matilainen pmatilai@redhat.com>
Fri, 8 Jul 2011 11:48:54 +0000 (14:48 +0300)
commit501c6c4b2003deaf286a6853b26c92193bb8f8ff
tree3ee5c2d370ec75cef3ad1e4b7aeef4bbb24f648a
parent3208913bdb201ab791f6b2b589d3d2ae3c87a5ad
Fix totally broken Fflush() operation

- This only ever worked for fpio, for all other types it returns
  bogons or crashes and burns.
- Use the file op vectors to find our fflush function instead
  of #ifdef/#endif if/else/ifelse jungle.
- Notably fdio and ufdio do not have a fflush() equivalent because
  they dont need one. Use a dummy function to always return success to
  differentiate from -2 aka "not supported by this io type"
rpmio/rpmio.c