ossp-pkg/rc/rc_list.c 1.2 -> 1.3
--- rc_list.c 2003/06/27 14:26:13 1.2
+++ rc_list.c 2003/07/02 15:31:38 1.3
@@ -100,7 +100,7 @@
/* First just learn how many globbed files we have */
if ((pLocdir = opendir(szLocations)) == NULL)
- return(RC_THROW(RC_ERR_DIR));
+ return(RC_THROW(RC_ERR_LOC));
for (pDirent = readdir(pLocdir); pDirent; pDirent = readdir(pLocdir))
if (!strncmp(pDirent->d_name, "rc.", strlen("rc.")))
nCount++;
@@ -108,13 +108,13 @@
/* Prepare resources before entering rcfile allocation loop */
if (nCount == 0) /* Check out the health of this directory listing */
- return(RC_THROW(RC_ERR_DIR));
+ return(RC_THROW(RC_ERR_LOC));
nIter = 0; /* Used in the next for block, so initialize */
pInst->m_ppFilevec = calloc(nCount + 1, sizeof (rc_file_t *));
if (!pInst->m_ppFilevec) /* Guard against memory overruns */
return(RC_THROW(RC_ERR_MEM));
if ((pLocdir = opendir(szLocations)) == NULL)
- return(RC_THROW(RC_ERR_DIR));
+ return(RC_THROW(RC_ERR_LOC));
/* Loop through file index setting rc file names according to dirent */
for (pDirent = readdir(pLocdir); pDirent; pDirent = readdir(pLocdir))
|
|