Fix bug in cfe_enumenv(). The CFE API to invoke is CFE_CMD_ENV_ENUM

and not CFE_CMD_ENV_SET.

Submitted by:	neel@
This commit is contained in:
Warner Losh 2010-01-11 17:16:06 +00:00
parent 0287b24426
commit 3274f529db

View File

@ -160,7 +160,7 @@ cfe_enumenv(int idx, char *name, int namelen, char *val, int vallen)
{
cfe_xiocb_t xiocb;
xiocb.xiocb_fcode = CFE_CMD_ENV_SET;
xiocb.xiocb_fcode = CFE_CMD_ENV_ENUM;
xiocb.xiocb_status = 0;
xiocb.xiocb_handle = 0;
xiocb.xiocb_flags = 0;