summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeo C2018-09-01 09:52:36 +0200
committerLeo C2018-09-01 11:24:55 +0200
commit86ee5f8bc4c5a4c204be6fff004ef6bf6b839dcd (patch)
treea4e5174184af89f5f8f416e90ee1fbfffaaf40c9 /include
parent414caa77d5709bf3372d1f9245312781eee7961b (diff)
downloadz180-stamp-86ee5f8bc4c5a4c204be6fff004ef6bf6b839dcd.zip
cmd_fat.c, cmd_sd: use cmd_error()
Diffstat (limited to 'include')
-rw-r--r--include/errnum.h17
-rw-r--r--include/strerror.h6
2 files changed, 21 insertions, 2 deletions
diff --git a/include/errnum.h b/include/errnum.h
new file mode 100644
index 0000000..5de8f2b
--- /dev/null
+++ b/include/errnum.h
@@ -0,0 +1,17 @@
+/*
+ * (C) Copyright 2018 Leo C. <erbl259-lmu@yahoo.de>
+ *
+ * SPDX-License-Identifier: GPL-2.0
+ */
+
+#ifndef ERRNUM_H
+#define ERRNUM_H
+
+#include "errnum.h"
+
+typedef enum {
+ ENOMEM = 101,
+ EBUSTO
+} ERRNUM;
+
+#endif /* ERRNUM_H */
diff --git a/include/strerror.h b/include/strerror.h
index 9cc0821..0457316 100644
--- a/include/strerror.h
+++ b/include/strerror.h
@@ -1,5 +1,5 @@
/*
- * (C) Copyright 2014 Leo C. <erbl259-lmu@yahoo.de>
+ * (C) Copyright 2018 Leo C. <erbl259-lmu@yahoo.de>
*
* SPDX-License-Identifier: GPL-2.0
*/
@@ -7,6 +7,8 @@
#ifndef STRERROR_H
#define STRERROR_H
-const FLASH char * my_strerror_P(int errnum);
+#include "errnum.h"
+
+const FLASH char * my_strerror_P(ERRNUM errnum);
#endif /* STRERROR_H */