declaration. (add void)
* src/login.c: login_prompt is the name of a function, use
loginprompt for the internal variable.
+ * src/chsh.c: loginsh is a global variable, use newshell for the
+ update_shell()'s parameter.
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
*
* It will not return in case of error.
*/
-static void update_shell (const char *user, char *loginsh)
+static void update_shell (const char *user, char *newshell)
{
const struct passwd *pw; /* Password entry from /etc/passwd */
struct passwd pwent; /* New password entry */
* fields remain unchanged.
*/
pwent = *pw;
- pwent.pw_shell = loginsh;
+ pwent.pw_shell = newshell;
/*
* Update the passwd file entry. If there is a DBM file, update