httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fua...@apache.org
Subject svn commit: r1395792 - /httpd/httpd/trunk/support/passwd_common.c
Date Mon, 08 Oct 2012 22:16:43 GMT
Author: fuankg
Date: Mon Oct  8 22:16:43 2012
New Revision: 1395792

URL: http://svn.apache.org/viewvc?rev=1395792&view=rev
Log:
Removed __func__ usage which is c99.

Modified:
    httpd/httpd/trunk/support/passwd_common.c

Modified: httpd/httpd/trunk/support/passwd_common.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/passwd_common.c?rev=1395792&r1=1395791&r2=1395792&view=diff
==============================================================================
--- httpd/httpd/trunk/support/passwd_common.c (original)
+++ httpd/httpd/trunk/support/passwd_common.c Mon Oct  8 22:16:43 2012
@@ -58,7 +58,7 @@ static int generate_salt(char *s, size_t
 
     n = (size * 6 + 7)/8;
     if (n > sizeof(rnd)) {
-        apr_file_printf(errfile, "%s: BUG: Buffer too small", __func__);
+        apr_file_printf(errfile, "generate_salt(): BUG: Buffer too small");
         abort();
     }
     rv = apr_generate_random_bytes(rnd, n);
@@ -242,7 +242,7 @@ int mkhash(struct passwd_ctx *ctx)
 #endif /* BCRYPT_ALGO_SUPPORTED */
 
     default:
-        apr_file_printf(errfile, "%s: BUG: invalid algorithm %d", __func__,
+        apr_file_printf(errfile, "mkhash(): BUG: invalid algorithm %d",
                         ctx->alg);
         abort();
     }
@@ -307,7 +307,9 @@ int parse_common_options(struct passwd_c
             break;
         }
     default:
-        apr_file_printf(errfile, "%s: BUG: invalid option %c", __func__, opt);
+        apr_file_printf(errfile, 
+                        "parse_common_options(): BUG: invalid option %c",
+                        opt);
         abort();
     }
     return 0;



Mime
View raw message