INN commit: trunk/innfeed (imap_connection.c)

INN Commit rra at isc.org
Sat Aug 27 21:22:59 UTC 2016


    Date: Saturday, August 27, 2016 @ 14:22:59
  Author: iulius
Revision: 10053

Fix misleading indentation (notably for SASL_CB_AUTHNAME)

Modified:
  trunk/innfeed/imap_connection.c

-------------------+
 imap_connection.c |   35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)

Modified: imap_connection.c
===================================================================
--- imap_connection.c	2016-08-27 19:25:13 UTC (rev 10052)
+++ imap_connection.c	2016-08-27 21:22:59 UTC (rev 10053)
@@ -1233,30 +1233,29 @@
 
 
   switch (id) {
-  case SASL_CB_GETREALM:
+    case SASL_CB_GETREALM:
       *result = deliver_realm;
       if (len)
-	  *len = deliver_realm ? strlen(deliver_realm) : 0;
+        *len = deliver_realm ? strlen(deliver_realm) : 0;
       break;
-
-  case SASL_CB_USER:
+    case SASL_CB_USER:
       *result = deliver_username;
       if (len)
-	  *len = deliver_username ? strlen(deliver_username) : 0;
-    break;
-  case SASL_CB_AUTHNAME:
-    authid=deliver_authname;
-    *result = authid;
-    if (len)
-      *len = authid ? strlen(authid) : 0;
+        *len = deliver_username ? strlen(deliver_username) : 0;
       break;
-  case SASL_CB_LANGUAGE:
-    *result = NULL;
-    if (len)
-      *len = 0;
-    break;
-  default:
-    return SASL_BADPARAM;
+    case SASL_CB_AUTHNAME:
+      authid=deliver_authname;
+      *result = authid;
+      if (len)
+        *len = authid ? strlen(authid) : 0;
+      break;
+    case SASL_CB_LANGUAGE:
+      *result = NULL;
+      if (len)
+        *len = 0;
+      break;
+    default:
+      return SASL_BADPARAM;
   }
   return SASL_OK;
 }



More information about the inn-committers mailing list