diff options
author | Vinson Lee <vlee@vmware.com> | 2010-02-17 21:50:07 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-02-17 21:50:38 -0800 |
commit | 56b7a6f6328f4bf73951aceac2c70b39ed787399 (patch) | |
tree | f45c59bf3d42026e5ae2e6182b7e7b8ee2368abd | |
parent | 3f7af8440568d083dd9bb1370b785b60f5a141f0 (diff) | |
download | external_mesa3d-56b7a6f6328f4bf73951aceac2c70b39ed787399.zip external_mesa3d-56b7a6f6328f4bf73951aceac2c70b39ed787399.tar.gz external_mesa3d-56b7a6f6328f4bf73951aceac2c70b39ed787399.tar.bz2 |
progs/rbug: s/read/rbug_read/
read conflicts with read in /usr/include/unistd.h.
-rw-r--r-- | progs/rbug/bin_to_bmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/progs/rbug/bin_to_bmp.c b/progs/rbug/bin_to_bmp.c index 49a5416..346bdea 100644 --- a/progs/rbug/bin_to_bmp.c +++ b/progs/rbug/bin_to_bmp.c @@ -32,7 +32,7 @@ #include "util/u_network.h" #include "util/u_tile.h" -static uint8_t* read(const char *filename, unsigned size); +static uint8_t* rbug_read(const char *filename, unsigned size); static void dump(unsigned src_width, unsigned src_height, unsigned src_stride, enum pipe_format src_format, uint8_t *data, unsigned src_size); @@ -47,7 +47,7 @@ int main(int argc, char** argv) const char *filename = "mybin.bin"; enum pipe_format format = PIPE_FORMAT_A8R8G8B8_UNORM; - dump(width, height, stride, format, read(filename, size), size); + dump(width, height, stride, format, rbug_read(filename, size), size); return 0; } @@ -92,7 +92,7 @@ static void dump(unsigned width, unsigned height, FREE(rgba); } -static uint8_t* read(const char *filename, unsigned size) +static uint8_t* rbug_read(const char *filename, unsigned size) { uint8_t *data; FILE *file = fopen(filename, "rb"); |