diff options
| -rw-r--r-- | include/tinytac.h | 3 | ||||
| -rw-r--r-- | lib/libtinytac/lerror.c | 3 | ||||
| -rw-r--r-- | lib/libtinytac/lmemory.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/include/tinytac.h b/include/tinytac.h index 3c90ae4..05987c5 100644 --- a/include/tinytac.h +++ b/include/tinytac.h | |||
| @@ -108,7 +108,8 @@ | |||
| 108 | #define TTAC_ENOBUFS 0x0006 ///< no buffer space available | 108 | #define TTAC_ENOBUFS 0x0006 ///< no buffer space available |
| 109 | #define TTAC_EEXISTS 0x0007 ///< dictionary object exists | 109 | #define TTAC_EEXISTS 0x0007 ///< dictionary object exists |
| 110 | #define TTAC_EINVAL 0x0008 ///< invalid argument | 110 | #define TTAC_EINVAL 0x0008 ///< invalid argument |
| 111 | #define TTAC_EOPT 0x0009 ///< invalid or unknown option | 111 | #define TTAC_EOPTION 0x0009 ///< invalid or unknown option |
| 112 | #define TTAC_EOPTVAL 0x000a ///< invalid option value | ||
| 112 | 113 | ||
| 113 | 114 | ||
| 114 | // library user options | 115 | // library user options |
diff --git a/lib/libtinytac/lerror.c b/lib/libtinytac/lerror.c index f269202..7965946 100644 --- a/lib/libtinytac/lerror.c +++ b/lib/libtinytac/lerror.c | |||
| @@ -83,7 +83,8 @@ tinytac_error_map( | |||
| 83 | case TTAC_ENOBUFS: return("no buffer space available"); | 83 | case TTAC_ENOBUFS: return("no buffer space available"); |
| 84 | case TTAC_EEXISTS: return("dictionary object exists"); | 84 | case TTAC_EEXISTS: return("dictionary object exists"); |
| 85 | case TTAC_EINVAL: return("invalid argument"); | 85 | case TTAC_EINVAL: return("invalid argument"); |
| 86 | case TTAC_EOPT: return("invalid or unknown option"); | 86 | case TTAC_EOPTION: return("invalid or unknown option"); |
| 87 | case TTAC_EOPTVAL: return("invalid option value"); | ||
| 87 | default: | 88 | default: |
| 88 | break; | 89 | break; |
| 89 | }; | 90 | }; |
diff --git a/lib/libtinytac/lmemory.c b/lib/libtinytac/lmemory.c index e42660d..e8256c3 100644 --- a/lib/libtinytac/lmemory.c +++ b/lib/libtinytac/lmemory.c | |||
| @@ -218,7 +218,7 @@ tinytac_get_option( | |||
| 218 | break; | 218 | break; |
| 219 | }; | 219 | }; |
| 220 | 220 | ||
| 221 | return(TTAC_EOPT); | 221 | return(TTAC_EOPTION); |
| 222 | } | 222 | } |
| 223 | 223 | ||
| 224 | 224 | ||
