65cc7eb95f048c9ee7aca28909f38f616ee3c26e
chinhli
  Thu May 10 15:29:45 2012 -0700
Change coding style in hgLogin and hgSession to confirm to kent'style standard.
diff --git src/hg/hgSession/hgSession.c src/hg/hgSession/hgSession.c
index e50edac..b85d3ff 100644
--- src/hg/hgSession/hgSession.c
+++ src/hg/hgSession/hgSession.c
@@ -44,70 +44,72 @@
 size_t len = strlen(encStr);
 char *decStr = needMem(len+1);
 cgiDecode(encStr, decStr, len);
 return decStr;
 }
 
 
 void welcomeUser(char *wikiUserName)
 /* Tell the user they are not logged in to the wiki or other login
  * system and tell them how to do so. */
 {
 char *wikiHost = wikiLinkHost();
 
 cartWebStart(cart, NULL, "Welcome %s", wikiUserName);
 jsInit();
-if (loginSystemEnabled())
+if (loginSystemEnabled()) /* Using the new hgLogin CGI for login? */
 {
 printf("If you are not %s (on the %s at "
        "<A HREF=\"http://%s/\" TARGET=_BLANK>%s</A>) "
        "and would like to sign out or change identity, \n",
        wikiUserName, loginSystemName(), wikiHost, wikiHost);
 printf("<A HREF=\"%s\"><B>click here to sign out.</B></A>\n",
        wikiLinkUserLogoutUrl(cartSessionId(cart)));
- 
-} else {
+    }
+else
+    {
 printf("If you are not %s (on the wiki at "
        "<A HREF=\"http://%s/\" TARGET=_BLANK>%s</A>) "
        "and would like to sign out or change identity, \n",
        wikiUserName, wikiHost, wikiHost);
 printf("<A HREF=\"%s\"><B>click here to sign out.</B></A>\n",
        wikiLinkUserLogoutUrl(cartSessionId(cart)));
 }
 }
 
 void offerLogin()
-/* Tell the user they are not logged in to the wiki and tell them how to
+/* Tell the user they are not logged in to the system and tell them how to
  * do so. */
 {
 char *wikiHost = wikiLinkHost();
 
 cartWebStart(cart, NULL, "Sign in to UCSC Genome Bioinformatics");
 jsInit();
 if (loginSystemEnabled())
 {
 printf("Signing in enables you to save current settings into a "
        "named session, and then restore settings from the session later.\n"
        "If you wish, you can share named sessions with other users.\n");
-printf("<P>The sign-in page is handled by our %s system. "
-       ,loginSystemName());
+    printf("<P>The sign-in page is handled by our %s system. ", loginSystemName());
 printf("<A HREF=\"%s\"><B>click here to sign in.</B></A>\n",
        wikiLinkUserLoginUrl(cartSessionId(cart)));
 printf("To register for an account, "
        "<A HREF=\"http://%s/cgi-bin/hgLogin?do.signupPage=1\">"
        "<B>click here to sign up.</B></A>\n",wikiHost);
-} else {
+    }    
+else
+    {
 printf("Signing in enables you to save current settings into a "
        "named session, and then restore settings from the session later.\n"
        "If you wish, you can share named sessions with other users.\n");
 printf("<P>The sign-in page is handled by our "
        "<A HREF=\"http://%s/\" TARGET=_BLANK>wiki system</A>:\n", wikiHost);
 printf("<A HREF=\"%s\"><B>click here to sign in.</B></A>\n",
        wikiLinkUserLoginUrl(cartSessionId(cart)));
 printf("The wiki also serves as a forum for users "
        "to share knowledge and ideas.\n");
 }
 }
 
 
 char *getLinkUserName()
 /* Return the user name specified in cookies from the browser, or NULL