diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-08-25 05:50:30 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-08-25 05:50:30 +0000 |
commit | ce7b20be4fd9cabd1a488930fcafc10de76f7e58 (patch) | |
tree | 480623d8dafcc825d8d749d048dc25a3e9c33d18 /converter | |
parent | 12b0c5143a3d96d4a0a8077866a82910b86312e0 (diff) | |
download | netpbm-mirror-ce7b20be4fd9cabd1a488930fcafc10de76f7e58.tar.gz netpbm-mirror-ce7b20be4fd9cabd1a488930fcafc10de76f7e58.tar.xz netpbm-mirror-ce7b20be4fd9cabd1a488930fcafc10de76f7e58.zip |
Use pm_openr() instead of fopen()
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@715 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/ppm/ppmtoarbtxt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/converter/ppm/ppmtoarbtxt.c b/converter/ppm/ppmtoarbtxt.c index 9817f183..df859c84 100644 --- a/converter/ppm/ppmtoarbtxt.c +++ b/converter/ppm/ppmtoarbtxt.c @@ -341,9 +341,7 @@ read_skeleton(const char * const filename, { if (slen > 0 && (skl[nskl] = save_bin_data(slen,line)) != NULL) ++nskl; \ slen = 0; } - sklfile = fopen(filename,"r"); - if (sklfile == NULL) - return -1; + sklfile = pm_openr(filename); /* Parse skeleton file */ nskl = 0; /* initial value */ |