Purpose of commit: cleanup
Commit summary:
---------------
remove a compilation warning.
0.76: please submit patches for this section with actual code/doc
patches!
+* pam_unix_passwd: got rid of an annoying warning (Bug 461089 - agmorgan)
* pam_unix: removed superfluous use of static variables in md5 and bigcrypt
routines, bringing us a step closer to thread-safeness. Eliminated
some variable indirection along the way. (Bug 440107 - vorlon)
tmpent = fgetpwent(opwfile);
while (tmpent) {
if (!strcmp(tmpent->pw_name, forwho)) {
- tmpent->pw_passwd = towhat;
+ /* To shut gcc up */
+ union {
+ const char *const_charp;
+ char *charp;
+ } assigned_passwd;
+ assigned_passwd.const_charp = towhat;
+
+ tmpent->pw_passwd = assigned_passwd.charp;
}
if (putpwent(tmpent, pwfile)) {
fprintf(stderr, "error writing entry to password file: %s\n",