comparison libtomcrypt/src/misc/error_to_string.c @ 314:827f87dfbc22 ucc-axis-hack

*hack hack hack* get rid of a few more bits
author matt-ucc@ucc.asn.au
date Mon, 27 Mar 2006 08:36:44 +0000
parents 1b9e69c058d2
children
comparison
equal deleted inserted replaced
313:fabcee551349 314:827f87dfbc22
14 /** 14 /**
15 @file error_to_string.c 15 @file error_to_string.c
16 Convert error codes to ASCII strings, Tom St Denis 16 Convert error codes to ASCII strings, Tom St Denis
17 */ 17 */
18 18
19 #if 0
19 static const char *err_2_str[] = 20 static const char *err_2_str[] =
20 { 21 {
21 "CRYPT_OK", 22 "CRYPT_OK",
22 "CRYPT_ERROR", 23 "CRYPT_ERROR",
23 "Non-fatal 'no-operation' requested.", 24 "Non-fatal 'no-operation' requested.",
65 return "Invalid error code."; 66 return "Invalid error code.";
66 } else { 67 } else {
67 return err_2_str[err]; 68 return err_2_str[err];
68 } 69 }
69 } 70 }
71 #endif
72 const char *error_to_string(int err)
73 {
74 static *ret = "";
75 return ret;
76 }
70 77
71 78
72 /* $Source: /cvs/libtom/libtomcrypt/src/misc/error_to_string.c,v $ */ 79 /* $Source: /cvs/libtom/libtomcrypt/src/misc/error_to_string.c,v $ */
73 /* $Revision: 1.3 $ */ 80 /* $Revision: 1.3 $ */
74 /* $Date: 2005/05/05 14:35:59 $ */ 81 /* $Date: 2005/05/05 14:35:59 $ */