]> git.sur5r.net Git - i3/i3/commitdiff
libi3/ucs2_conversion: tiny style fixes
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 16 Nov 2011 21:41:55 +0000 (21:41 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 16 Nov 2011 21:41:55 +0000 (21:41 +0000)
libi3/ucs2_conversion.c

index 99beb36832ab51fd725346934c0514ecd6c89e70..b170ac8d0f80e82abe4f2bb1a0fdef7b0540426b 100644 (file)
@@ -35,8 +35,7 @@ char *convert_ucs2_to_utf8(xcb_char2b_t *text, size_t num_glyphs) {
         utf8_conversion_descriptor = iconv_open("UTF-8", "UCS-2BE");
         if (utf8_conversion_descriptor == (iconv_t)-1)
             err(EXIT_FAILURE, "Error opening the conversion context");
-    }
-    else {
+    } else {
         /* Reset the existing conversion descriptor */
         iconv(utf8_conversion_descriptor, NULL, NULL, NULL, NULL);
     }
@@ -78,8 +77,7 @@ xcb_char2b_t *convert_utf8_to_ucs2(char *input, int *real_strlen) {
         ucs2_conversion_descriptor = iconv_open("UCS-2BE", "UTF-8");
         if (ucs2_conversion_descriptor == (iconv_t)-1)
             err(EXIT_FAILURE, "Error opening the conversion context");
-    }
-    else {
+    } else {
         /* Reset the existing conversion descriptor */
         iconv(ucs2_conversion_descriptor, NULL, NULL, NULL, NULL);
     }