You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by fu...@apache.org on 2008/06/06 15:40:55 UTC

svn commit: r663939 - /apr/apr/trunk/passwd/apr_getpass.c

Author: fuankg
Date: Fri Jun  6 06:40:55 2008
New Revision: 663939

URL: http://svn.apache.org/viewvc?rev=663939&view=rev
Log:
de-tabified - no functional change.

Modified:
    apr/apr/trunk/passwd/apr_getpass.c

Modified: apr/apr/trunk/passwd/apr_getpass.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/passwd/apr_getpass.c?rev=663939&r1=663938&r2=663939&view=diff
==============================================================================
--- apr/apr/trunk/passwd/apr_getpass.c (original)
+++ apr/apr/trunk/passwd/apr_getpass.c Fri Jun  6 06:40:55 2008
@@ -100,13 +100,13 @@
     int n=0;
     fputs(prompt, stderr);
     fflush(stderr);
-	
+
     if (tcgetattr(STDIN_FILENO, &attr) != 0)
         return NULL;
     attr.c_lflag &= ~(ECHO);
 
     if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &attr) != 0)
-	    return NULL;
+        return NULL;
     while ((password[n] = getchar()) != '\n') {
         if (n < sizeof(password) - 1 && password[n] >= ' ' && password[n] <= '~') {
             n++;
@@ -180,7 +180,7 @@
             fputs("^Z\n", stderr);
             return NULL;
         }
-	else if (ch == 27) /* ESC */ {
+        else if (ch == 27) /* ESC */ {
             fputc('\n', stderr);
             fputs(prompt, stderr);
             n = 0;
@@ -189,7 +189,7 @@
             password[n++] = ch;
             fputc('*', stderr);
         }
-	else {
+        else {
             fputc('\a', stderr);
         }
     }