From 5e3a1ff09e327f6e1de32ae3d4718f3579559f32 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Wed, 19 May 2010 03:25:42 +0000 Subject: Remove VMS code. Who are we kidding? git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1216 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/pmfileio.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'lib/pmfileio.c') diff --git a/lib/pmfileio.c b/lib/pmfileio.c index 585b0d0f..819a0343 100644 --- a/lib/pmfileio.c +++ b/lib/pmfileio.c @@ -48,18 +48,14 @@ /* File open/close that handles "-" as stdin/stdout and checks errors. */ -FILE* +FILE * pm_openr(const char * const name) { - FILE* f; + FILE * f; - if (strcmp(name, "-") == 0) + if (streq(name, "-")) f = stdin; else { -#ifndef VMS f = fopen(name, "rb"); -#else - f = fopen(name, "r", "ctx=stm"); -#endif if (f == NULL) pm_error("Unable to open file '%s' for reading. " "fopen() returns errno %d (%s)", @@ -70,18 +66,14 @@ pm_openr(const char * const name) { -FILE* +FILE * pm_openw(const char * const name) { - FILE* f; + FILE * f; - if (strcmp(name, "-") == 0) + if (streq(name, "-")) f = stdout; else { -#ifndef VMS f = fopen(name, "wb"); -#else - f = fopen(name, "w", "mbc=32", "mbf=2"); /* set buffer factors */ -#endif if (f == NULL) pm_error("Unable to open file '%s' for writing. " "fopen() returns errno %d (%s)", -- cgit 1.4.1