summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/plugin.c20
-rw-r--r--src/common/util.c12
2 files changed, 15 insertions, 17 deletions
diff --git a/src/common/plugin.c b/src/common/plugin.c
index d4081968..a30ba575 100644
--- a/src/common/plugin.c
+++ b/src/common/plugin.c
@@ -1043,19 +1043,17 @@ hexchat_get_info (hexchat_plugin *ph, const char *id)
 	/* do the session independant ones first */
 	switch (hash)
 	{
-	case 0x325acab5:	/* libdirfs */
-		return HEXCHATLIBDIR;
+		case 0x325acab5:	/* libdirfs */
+			return HEXCHATLIBDIR;
 
-	case 0x14f51cd8: /* version */
-		return PACKAGE_VERSION;
+		case 0x14f51cd8: /* version */
+			return PACKAGE_VERSION;
 
-	case 0xdd9b1abd:	/* xchatdir */
-	case 0x9a70daba:	/* hexchatdir */
-		return get_xdir ();
-
-	case 0xe33f6c4a:	/* xchatdirfs */
-	case 0xc1a52107:	/* hexchatdirfs */
-		return get_xdir ();
+		case 0xdd9b1abd:	/* xchatdir */
+		case 0x9a70daba:	/* hexchatdir */
+		case 0xe33f6c4a:	/* xchatdirfs */
+		case 0xc1a52107:	/* hexchatdirfs */
+			return get_xdir ();
 	}
 
 	sess = ph->context;
diff --git a/src/common/util.c b/src/common/util.c
index d23a1d44..d4bfeac9 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -254,14 +254,14 @@ file_part (char *file)
 	{
 		switch (*file)
 		{
-		case 0:
-			return (filepart);
-		case '/':
+			case 0:
+				return (filepart);
+			case '/':
 #ifdef WIN32
-		case '\\':
+			case '\\':
 #endif
-			filepart = file + 1;
-			break;
+				filepart = file + 1;
+				break;
 		}
 		file++;
 	}