ossp-pkg/pth/pth_ext.c 1.10 -> 1.11
--- pth_ext.c 2002/01/27 11:03:40 1.10
+++ pth_ext.c 2002/10/24 15:21:13 1.11
@@ -90,14 +90,14 @@
Sfdisc_t *disc;
if ((disc = (Sfdisc_t *)malloc(sizeof(Sfdisc_t))) == NULL)
- return NULL;
+ return pth_error((SFdisc_t *)NULL, errno);
disc->readf = pth_sfio_read;
disc->writef = pth_sfio_write;
disc->seekf = pth_sfio_seek;
disc->exceptf = pth_sfio_except;
return disc;
#else
- return_errno(NULL, ENOSYS);
+ return pth_error((Sfdisc_t *)NULL, ENOSYS);
#endif /* PTH_EXT_SFIO */
}
|
|