[Nbd] [PATCH 1/2] nbd-server: remove unused CFILE_PROGERR error code
Programmer errors should not be mixed with runtime errors. If there's a
prorammer error, then there's nothing we can do about it during runtime,
and the program should fail as early and loud as possible.
Signed-off-by: Tuomas Jorma Juhani Räsänen <tuomasjjrasanen@...1261...>
---
nbd-server.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/nbd-server.c b/nbd-server.c
index e45c0ca..217a07a 100644
--- a/nbd-server.c
+++ b/nbd-server.c
@@ -616,7 +616,6 @@ typedef enum {
CFILE_KEY_MISSING, /**< A (required) key is missing */
CFILE_VALUE_INVALID, /**< A value is syntactically invalid */
CFILE_VALUE_UNSUPPORTED,/**< A value is not supported in this build */
- CFILE_PROGERR, /**< Programmer error */
CFILE_NO_EXPORTS, /**< A config file was specified that does not
define any exports */
CFILE_INCORRECT_PORT, /**< The reserved port was specified for an
--
1.7.10.4
Reply to: