Changeset 25051 for branches/czw_branch/cleanup/psLib/src/fits/psFits.c
- Timestamp:
- Aug 11, 2009, 3:54:00 PM (17 years ago)
- Location:
- branches/czw_branch/cleanup
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psLib/src/fits/psFits.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/cleanup
- Property svn:mergeinfo changed
/trunk merged: 24940-24950,24953-24971,24973-24977,24986-24989,24993-25017,25019,25021,25023-25024,25026,25029-25031,25036-25049
- Property svn:mergeinfo changed
-
branches/czw_branch/cleanup/psLib/src/fits/psFits.c
r24285 r25051 150 150 char errorBuf[MAX_STRING_LENGTH], *errorMsg; 151 151 #if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) 152 errorMsg = strerror_r(thisErrno, errorBuf, MAX_STRING_LENGTH);153 #else154 152 strerror_r(thisErrno, errorBuf, MAX_STRING_LENGTH); 155 153 errorMsg = errorBuf; 154 #else 155 errorMsg = strerror_r(thisErrno, errorBuf, MAX_STRING_LENGTH); 156 156 #endif 157 157 psError(PS_ERR_IO, true, "Directory (%s) for requested file is not accessible: %s", … … 209 209 char errorBuf[64], *errorMsg; 210 210 # if ((_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) && ! _GNU_SOURCE) 211 errorMsg = strerror_r (errno, errorBuf, 64);212 # else213 211 strerror_r (errno, errorBuf, 64); 214 212 errorMsg = errorBuf; 213 # else 214 errorMsg = strerror_r (errno, errorBuf, 64); 215 215 # endif 216 psError (PS_ERR_IO, true, "Failed to delete a previously-existing file: %s", errorMsg); 217 fprintf (stderr, "errno: %d, %s, %s : %lx, %lx\n", thisErrno, errorMsg, errorBuf, (long int) errorMsg, (long int) errorBuf); 216 psError(PS_ERR_IO, true, "Failed to delete a previously-existing file (%s), error %d: %s", 217 name, thisErrno, errorMsg); 218 //fprintf(stderr, "errno: %d, %s, %s : %lx, %lx\n", thisErrno, errorMsg, errorBuf, (long int) errorMsg, (long int) errorBuf); 218 219 return NULL; 219 220 }
Note:
See TracChangeset
for help on using the changeset viewer.
