diff common/errorcodes.h @ 60:6acb1dae6185

Use strn functions and improve error handling. Even if we know the strings are NULL terminated we use length terminated string functions after a first strlen this makes it easier to assert that at one point we know the string is terminated and afterwards use the length of that.
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 18 Mar 2014 11:28:02 +0000
parents
children fb9f78f7ab2f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/errorcodes.h	Tue Mar 18 11:28:02 2014 +0000
@@ -0,0 +1,9 @@
+#ifndef ERRORCODES_H
+#define ERRORCODES_H
+
+/* No begin certificate / end certificate could be found */
+#define ERR_INVALID_INPUT_NO_LIST 2
+/* Too much input for the installer process */
+#define ERR_TOO_MUCH_INPUT 3
+
+#endif

http://wald.intevation.org/projects/trustbridge/