]> granicus.if.org Git - shadow/commitdiff
* libmisc/utmp.c: Avoid implicit conversion of pointers to
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 18:17:10 +0000 (18:17 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Fri, 13 Jun 2008 18:17:10 +0000 (18:17 +0000)
booleans
+ add missing changelog from last commit.

ChangeLog
libmisc/utmp.c

index 80290e6659f8f0a08b173d93e4af2f188351cca5..cd0e15998eeb884b55bc9ab9da1f0ff3bb098ffc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2008-06-13  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/utmp.c: Avoid implicit conversion of pointers to
+       booleans
+
+2008-06-13  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * libmisc/console.c, libmisc/hushed.c, libmisc/yesno.c,
+       libmisc/loginprompt.c, libmisc/ttytype.c, libmisc/tz.c,
+       src/login_nopam.c, src/chpasswd.c, src/chgpasswd.c, lib/port.c:
+       The size argument of fgets is an int, not a size_t.
+       * libmisc/loginprompt.c: Ignore the return value from signal()
+       when the signal handlers are restored.
+       * src/chpasswd.c: Cast the return value of time() to a long
+       integer.
+       * src/chpasswd.c: Use the SCALE macro instead of (24L * 3600L)
+       for the values to be set in /etc/shadow.
+
 2008-06-10  Nicolas François  <nicolas.francois@centraliens.net>
 
        * src/pwck.c: Use a bool when possible instead of int integers.
index ded2b5ad4a5cae491c0679d3308327f8d31a8261..c8046e288c1908e0f74613568d8c21d784e927be 100644 (file)
@@ -299,13 +299,13 @@ void setutmp (const char *name, const char *line, const char *host)
        setutxent ();
        setutent ();
 
-       while (utmpx = getutxent ()) {
+       while ((utmpx = getutxent ()) != NULL) {
                if (utmpx->ut_pid == pid) {
                        found_utmpx = true;
                        break;
                }
        }
-       while (utmp = getutent ()) {
+       while ((utmp = getutent ()) != NULL) {
                if (utmp->ut_pid == pid) {
                        found_utmp = true;
                        break;