summaryrefslogtreecommitdiff
path: root/lib/dpkg/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dpkg/error.h')
-rw-r--r--lib/dpkg/error.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/dpkg/error.h b/lib/dpkg/error.h
index e38823cd8..08555dc85 100644
--- a/lib/dpkg/error.h
+++ b/lib/dpkg/error.h
@@ -2,7 +2,7 @@
* libdpkg - Debian packaging suite library routines
* error.h - error message reporting
*
- * Copyright © 2011-2012 Guillem Jover <guillem@debian.org>
+ * Copyright © 2011-2014 Guillem Jover <guillem@debian.org>
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -31,12 +31,14 @@ DPKG_BEGIN_DECLS
* @{
*/
+enum dpkg_msg_type {
+ DPKG_MSG_NONE,
+ DPKG_MSG_WARN,
+ DPKG_MSG_ERROR,
+};
+
struct dpkg_error {
- enum dpkg_msg_type {
- DPKG_MSG_NONE,
- DPKG_MSG_WARN,
- DPKG_MSG_ERROR,
- } type;
+ enum dpkg_msg_type type;
char *str;
};