- Timestamp:
- Sep 20, 2011, 8:39:03 PM (13 years ago)
- Location:
- trunk/src/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/RpBuffer.cc
r2463 r2529 168 168 } 169 169 ssize_t nWritten; 170 nWritten = fwrite(bytes(), size (), sizeof(char), f);170 nWritten = fwrite(bytes(), sizeof(char), size(), f); 171 171 fclose(f); // Close the file. 172 172 173 173 if (nWritten != (ssize_t)size()) { 174 status.addError("can't write %d bytes to \"%s\": %s\n", size(), 174 status.addError("can't write %d bytes to \"%s\": %s\n", size(), 175 175 path, strerror(errno)); 176 176 return false; -
trunk/src/core/RpLibraryFInterface.cc
r2408 r2529 618 618 { 619 619 size_t nbytes = 0; 620 int ret = 0;621 620 622 621 RpLibrary* lib = NULL; … … 636 635 } 637 636 638 if (nbytes > 0) { 639 ret = 1; 640 } 641 642 return ret; 637 return nbytes; 643 638 } 644 639
Note: See TracChangeset
for help on using the changeset viewer.