style cleanup: return(a) -> return a, part 1
[oweals/busybox.git] / libbb / pw_encrypt.c
index a15339974459f20ef0cc3b8d333d2b6002de85ce..f6085f3d2c541fedab12a8890828381e7845ec40 100644 (file)
@@ -4,33 +4,19 @@
  *
  * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
 
+#include "libbb.h"
 #include <string.h>
 #include <crypt.h>
-#include "libbb.h"
-
 
 char *pw_encrypt(const char *clear, const char *salt)
 {
        static char cipher[128];
        char *cp;
 
-#ifdef CONFIG_FEATURE_SHA1_PASSWORDS
+#if 0 /* was CONFIG_FEATURE_SHA1_PASSWORDS, but there is no such thing??? */
        if (strncmp(salt, "$2$", 3) == 0) {
                return sha1_crypt(clear);
        }
@@ -42,4 +28,3 @@ char *pw_encrypt(const char *clear, const char *salt)
        safe_strncpy(cipher, cp, sizeof(cipher));
        return cipher;
 }
-