OSDN Git Service

(none)
[hos/hos-v4a.git] / cfgrtr / source / crealm.cpp
index cc8fbf7..4f58c60 100755 (executable)
@@ -46,7 +46,7 @@ int CApiCreAlm::AnalyzeApi(const char* pszApiName, const char* pszParams)
        {
                return AddParams(pszParams);
        }
-       else if ( strcmp(pszApiName, "HOS_MAX_ALMID") == 0 )
+       else if ( strcmp(pszApiName, "KERNEL_MAX_ALMID") == 0 )
        {
                int iId;
 
@@ -69,24 +69,24 @@ int CApiCreAlm::AnalyzeApi(const char* pszApiName, const char* pszParams)
 
                return CFG_ERR_OK;
        }
-       else if ( strcmp(pszApiName, "HOS_RES_ALMOBJ") == 0 )
+       else if ( strcmp(pszApiName, "KERNEL_RSV_ALMID") == 0 )
        {
                int iId;
 
-                if ( m_iMaxId > 0 )
+               if ( m_iMaxId > 0 )
                {
-                        return CFG_ERR_DEF_CONFLICT;
+                       return CFG_ERR_DEF_CONFLICT;
                }
 
-                if ( (iId = atoi(pszParams)) <= 0 )
+               if ( (iId = atoi(pszParams)) <= 0 )
                {
-                        return CFG_ERR_PARAM;
+                       return CFG_ERR_PARAM;
                }
 
-                m_iResObj += iId;
+               m_iResObj += iId;
 
-                return CFG_ERR_OK;
-        }
+               return CFG_ERR_OK;
+       }
 
        return CFG_ERR_NOPROC;
 }