diff options
author | axel <axel@liljencrantz.se> | 2006-06-09 09:52:12 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-09 09:52:12 +1000 |
commit | f7118e769f53678853eb17556097b82f100e9746 (patch) | |
tree | 775f5fc8046dc775a05db8fd293a58de5668943e /env.h | |
parent | 93ae00e8e50b9c1319ff478cbecbf482bf6d217e (diff) |
Add more function input validation checks
darcs-hash:20060608235212-ac50b-25fd55f96356af65d4da1eec100cc954b4a9f81e.gz
Diffstat (limited to 'env.h')
-rw-r--r-- | env.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -44,7 +44,12 @@ /** Error code for trying to alter read-only variable */ -#define ENV_PERM 1 +enum{ + ENV_PERM = 1, + ENV_INVALID +} +; + /** Initialize environment variable data @@ -71,7 +76,7 @@ void env_destroy(); The current error codes are: * ENV_PERM, can only be returned when setting as a user, e.g. ENV_USER is set. This means that the user tried to change a read-only variable. - + * ENV_INVALID, the variable name or mode was invalid */ int env_set( const wchar_t *key, |