* src/passwd.c: Avoid multi-statements lines.
+2010-08-21 Nicolas François <nicolas.francois@centraliens.net>
+
+ * src/passwd.c: Fix a const issue.
+ * src/passwd.c: Avoid multi-statements lines.
+
2010-08-21 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/copydir.c, lib/prototypes.h: Caller can choose not to
int i; /* Counter for retries */
int warned;
int pass_max_len = -1;
- char *method;
+ const char *method;
#ifdef HAVE_LIBCRACK_HIST
int HistUpdate (const char *, const char *);
* for strength, unless it is the root user. This provides an escape
* for initial login passwords.
*/
- if ((method = getdef_str ("ENCRYPT_METHOD")) == NULL) {
+ method = getdef_str ("ENCRYPT_METHOD");
+ if (NULL == method) {
if (!getdef_bool ("MD5_CRYPT_ENAB")) {
pass_max_len = getdef_num ("PASS_MAX_LEN", 8);
}