summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 00:39:05 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-01-03 00:39:05 +0100
commit5cda1659f30b86cc37e20719ce6f01aba9d2a834 (patch)
treebca4970bb226e3a477b1dd4e3a55bf72254ecb5c
parent888e01e95c8674857dd3bacf95f3d99f252fb540 (diff)
downloadratpoison-5cda1659f30b86cc37e20719ce6f01aba9d2a834.zip
Non-compliant enum forward declaration.
-rw-r--r--src/editor.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/editor.h b/src/editor.h
index b6e4b76..131a5ad 100644
--- a/src/editor.h
+++ b/src/editor.h
@@ -21,10 +21,8 @@
#ifndef _RATPOISON_EDITOR_H
#define _RATPOISON_EDITOR_H 1
-typedef enum edit_status edit_status;
-enum
-edit_status
+typedef enum edit_status
{
EDIT_INSERT,
EDIT_DELETE,
@@ -33,7 +31,7 @@ edit_status
EDIT_ABORT,
EDIT_DONE,
EDIT_NO_OP
-};
+} edit_status;
/* UTF-8 handling macros */
#define RP_IS_UTF8_CHAR(c) (defaults.utf8_locale && (c) & 0xC0)