Commit Graph

  • 47210d9a1a * src/pwconv.c: Use SHADOW_SP_FLAG_UNSET for the initial value of sp.sp_flag. * src/pwconv.c: Cast number of days to a long integer. nekral-guest 2008-06-13 20:33:38 +0000
  • d1881d1b56 * src/gpasswd.c: The ID argument of audit_logger is an unsigned int. * src/gpasswd.c: Ignore the return value of signal(). The signal handlers are only changed for the last steps of gpasswd, and there is no need to restore them. nekral-guest 2008-06-13 20:29:58 +0000
  • 6713a2ce67 * src/userdel.c: The ID argument of audit_logger is an unsigned int. * src/userdel.c: fork() and wait() return a pid_t, not an int. nekral-guest 2008-06-13 20:23:26 +0000
  • f626317e90 * src/newgrp.c: Use a %lu format and cast group and user IDs to unsigned long integers. * src/newgrp.c: The ID argument of audit_logger is an unsigned int. * src/newgrp.c: Ignore the return value of signal() (the signal handlers are assumed to be the default one and are restored later). * src/newgrp.c: Do not checl if a pid_t is < 0, check if equal to (pid_t)-1. nekral-guest 2008-06-13 20:21:24 +0000
  • 56327f6298 * libmisc/isexpired.c: Cast number of days to a long integer. * libmisc/isexpired.c: Add brackets and parenthesis. nekral-guest 2008-06-13 20:12:03 +0000
  • 7d05c4a2b0 * libmisc/copydir.c: Do not specify a size of arrays in the prototypes. * libmisc/copydir.c: Use a size_t for the length of strings. * libmisc/copydir.c: Cast the return value of malloc(). * libmisc/copydir.c: The size argument of write() is a size_t. nekral-guest 2008-06-13 20:10:53 +0000
  • 232bcafd7c * libmisc/pwd2spwd.c: Cast number of days to a long integer. * libmisc/pwd2spwd.c: Use SHADOW_SP_FLAG_UNSET for the initial value of sp.sp_flag. nekral-guest 2008-06-13 20:08:33 +0000
  • c82cfebd5e * lib/defines.h: Include <config.h> since it uses the macro that might be defined in this header file. * lib/defines.h: Prefer checking if HAVE_LOCALE_H or ENABLE_NLS are defined (rather than set to non 0). * lib/defines.h: The dummy implementations of bindtextdomain() and textdomain() should return a pointer. Return NULL instead of /* empty */ * lib/defines.h: Define SHADOW_SP_FLAG_UNSET, to be used for the initialization of sp_flag field of the shadow structures. * lib/defines.h: Define LC_ALL, needed even if HAVE_LOCALE_H is not defined. nekral-guest 2008-06-13 20:05:51 +0000
  • 07a6bcaa77 * libmisc/sulog.c: Ignore the return value of umask() when the mask is restored. * libmisc/sulog.c: Add brackets. * libmisc/sulog.c: Ignore return value of time() when use with a non NULL argument. nekral-guest 2008-06-13 19:52:58 +0000
  • fe0e4f635e * libmisc/log.c: Avoid assignments in comparisons. * libmisc/log.c: Add brackets and parenthesis. * libmisc/log.c: read() returns a ssize_t (note size_t). * libmisc/log.c: Avoid implicit conversion of pointers to booleans. * libmisc/log.c: Ignore return value of time() when use with a non NULL argument. nekral-guest 2008-06-13 19:50:49 +0000
  • 815ffb7d3e * libmisc/strtoday.c: Avoid implicit conversion of pointers to booleans. * libmisc/strtoday.c: Add brackets and parenthesis. nekral-guest 2008-06-13 19:48:11 +0000
  • 7f8c48834f * libmisc/salt.c: Use a size_t for the size of strings instead of unsigned int. * libmisc/salt.c: Add brackets and parenthesis. * libmisc/salt.c: Avoid assignments in comparisons. nekral-guest 2008-06-13 19:37:15 +0000
  • 0a6ce91369 * libmisc/age.c: fork() and wait return a pid_t, not an int. * libmisc/age.c: Avoid implicit conversion of pointers to booleans. * libmisc/age.c: Avoid assignments in comparisons. * libmisc/age.c: Ignore the return value of printf(), puts(), fputs() and fflush(). * libmisc/age.c: Add brackets and parenthesis. * libmisc/age.c: Cast the return value of time() to long and converted to a date. nekral-guest 2008-06-13 19:24:27 +0000
  • 71dda8b648 * libmisc/rlogin.c: The size argument of read() is a size_t. Propagate this time to the callers (the get_remote_string() and do_rlogin() functions). * libmisc/rlogin.c: Add brackets and parenthesis. * libmisc/rlogin.c: Avoid multi-statements lines. * libmisc/rlogin.c: Avoid assignments in comparisons. * libmisc/rlogin.c: Avoid implicit conversion of pointers to booleans. nekral-guest 2008-06-13 18:34:27 +0000
  • 2296db3db6 * libmisc/failure.c: Avoid assignments in comparisons. * libmisc/failure.c: read() returns a ssize_t. * libmisc/failure.c: Add brackets and parenthesis. * libmisc/failure.c: Ignore return value of time() when use with a non NULL argument. nekral-guest 2008-06-13 18:31:13 +0000
  • 1e798b640d * libmisc/chowntty.c: Avoid assignments in comparisons. * libmisc/chowntty.c: Avoid implicit conversion of pointers to booleans. * libmisc/chowntty.c: Add brackets and parenthesis. nekral-guest 2008-06-13 18:29:02 +0000
  • e91899c0da * libmisc/audit_help.c: Add brackets. nekral-guest 2008-06-13 18:24:37 +0000
  • 6099bda088 * libmisc/addgrps.c: Avoid implicit conversion of pointers to booleans. * libmisc/addgrps.c: Add brackets. nekral-guest 2008-06-13 18:19:34 +0000
  • 43e4d608ae * libmisc/utmp.c: Avoid implicit conversion of pointers to booleans + add missing changelog from last commit. nekral-guest 2008-06-13 18:17:10 +0000
  • ef32209fd7 * 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. nekral-guest 2008-06-13 18:11:09 +0000
  • 55b2e44814 Avoid implicit conversion of pointers to booleans. nekral-guest 2008-06-10 22:10:47 +0000
  • 6bb86709ee Add brackets. nekral-guest 2008-06-10 22:10:21 +0000
  • ce6dca81bc * src/pwck.c: Use a bool when possible instead of int integers. * src/pwck.c: Avoid implicit conversion of integers to booleans. nekral-guest 2008-06-10 22:09:12 +0000
  • d7ffaf94b1 * src/su.c: Use a bool when possible instead of int integers. * src/su.c: Add brackets and parenthesis. * src/su.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/su.c: Ignore the return value of pam_end() before exiting. * src/su.c: Avoid assignments in comparisons. * src/su.c: Avoid multi-statements lines. nekral-guest 2008-06-10 22:07:51 +0000
  • c573f432fe * lib/prototypes.h, libmisc/valid.c: Change the prototype of valid() to return a bool. * libmisc/valid.c: Add parenthesis. nekral-guest 2008-06-10 21:52:34 +0000
  • 7cb33ba636 Avoid implicit conversion of integer to boolean. nekral-guest 2008-06-10 20:34:25 +0000
  • 182731d6eb * lib/commonio.c: Add brackets and parenthesis. * lib/commonio.c: Check the result of fgets(). * lib/commonio.c: Avoid implicit conversion of pointers to booleans. nekral-guest 2008-06-10 20:27:16 +0000
  • f79fd32208 * lib/prototypes.h: Fix the prototypes to match earlier changes. nekral-guest 2008-06-10 20:02:47 +0000
  • b3c68f1692 Fix typo. Compil fix. nekral-guest 2008-06-10 20:02:12 +0000
  • ef1a2a82dd * lib/nscd.c: Include defines.h. * lib/nscd.c: Always warn when the nscd cache cannot be flushed. * lib/nscd.c: Avoid assignments in comparisons. * lib/nscd.c: Ignore the return value of fputs() when printing errors. nekral-guest 2008-06-10 20:01:55 +0000
  • 269d4c55dd * lib/port.c: Add brackets and parenthesis. * lib/port.c: Change isttytime() prototype to return a bool. * lib/port.c: Ignore the return value of fclose () (file open read-only). * lib/port.c: Avoid multi-statements lines. nekral-guest 2008-06-10 19:59:26 +0000
  • 91c8e1bf0d * src/id.c: Ignore the return value of fputs(), puts(), putchar(), and printf(). * src/id.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/id.c: Add brackets and parenthesis. * src/id.c: Avoid implicit conversion of pointers / integers to booleans. nekral-guest 2008-06-10 19:45:06 +0000
  • c8626c09af * src/chsh.c: Use a bool when possible instead of int integers. * src/chsh.c: restricted_shell() renamed is_restricted_shell(). check_shell() renamed shell_is_listed(). * src/chsh.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/chsh.c: Avoid implicit conversion of pointers / integers to booleans. * src/chsh.c: Ignore the return value of pam_end() before exiting. nekral-guest 2008-06-10 19:42:22 +0000
  • cac7d1a495 * src/grpunconv.c: Use a bool when possible instead of int integers. * src/grpunconv.c: Add brackets and parenthesis. * src/grpunconv.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/grpunconv.c: Avoid implicit conversion of pointers / integers to booleans. nekral-guest 2008-06-10 19:39:18 +0000
  • 3cbda4157b * src/sulogin.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/sulogin.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/sulogin.c: Avoid assignments in comparisons. * src/sulogin.c: Ignore the return value of alarm(). nekral-guest 2008-06-10 19:36:05 +0000
  • 46ce06791a * src/groups.c: Use a bool when possible instead of int integers. * src/groups.c: Add brackets and parenthesis. * src/groups.c: Avoid implicit conversion of pointers / integers to booleans. * src/groups.c: Avoid assignments in comparisons. * src/groups.c: Ignore the return value of putchar(), printf() * src/groups.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-10 19:29:54 +0000
  • 462e8a3d90 re-indent. nekral-guest 2008-06-10 19:18:44 +0000
  • cd9e4d1b2b * src/grpconv.c: Use a bool when possible instead of int integers. * src/grpconv.c: Add brackets and parenthesis. * src/grpconv.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/grpconv.c: Avoid implicit conversion of pointers / integers to booleans. nekral-guest 2008-06-10 19:18:34 +0000
  • e31af5f255 * src/faillog.c: Use a bool when possible instead of int integers. * src/faillog.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/faillog.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/faillog.c: Add brackets and parenthesis. nekral-guest 2008-06-10 19:16:02 +0000
  • a0dae7557c * src/login.c: Avoid multi-statements lines. * src/login.c: Ignore the return value of pam_end() before exiting. * src/login.c: Use a bool when possible instead of int integers. * src/login.c: Add brackets and parenthesis. * src/login.c: Ignore the return values of fflush(), putchar(), puts(). * src/login.c: Ignore the return value of fclose() for read-only files. * src/login.c: Avoid assignments in comparisons. * src/login.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-10 18:56:23 +0000
  • 836bf643b0 * src/chage.c: Use a bool when possible instead of int integers. * src/chage.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-10 17:56:53 +0000
  • f9e4c7ca02 * src/groupadd.c: Use a bool when possible instead of int integers. * src/groupadd.c: Add brackets and parenthesis. * src/groupadd.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/groupadd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/groupadd.c: Ignore the return value of pam_end() before exiting. nekral-guest 2008-06-10 17:53:35 +0000
  • a31782497c * src/pwck.c: Use a bool when possible instead of int integers. * src/pwck.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-10 17:51:30 +0000
  • 47f937ac13 * src/passwd.c: Use a bool when possible instead of int integers. * src/passwd.c: Avoid assignments in comparisons. * src/passwd.c: Add brackets and parenthesis. * src/passwd.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/passwd.c: Move the "context_t c" declaration at the beginning check_selinux_access. * src/passwd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-10 17:50:21 +0000
  • be8d08fda6 * src/groupmod.c: Use a bool when possible instead of int integers. * src/groupmod.c: Avoid assignments in comparisons. * src/groupmod.c: Add brackets and parenthesis. * src/groupmod.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/groupmod.c: Use a %lu format to print GIDs, and cast the GID to (unsigned long int). * src/groupmod.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/groupmod.c: Ignore the return value of pam_end() before exiting. nekral-guest 2008-06-10 17:45:08 +0000
  • 7dea133b55 * src/su.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 22:28:16 +0000
  • 63f0e5e2c0 * src/useradd.c: Use a bool when possible instead of int integers. * src/useradd.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/useradd.c: Add brackets and parenthesis. * src/useradd.c: Avoid assignments in comparisons. * src/useradd.c: Ignore the return value of fclose() for read-only files. * src/useradd.c: Ignore the return value of fflush() before closing the files. * src/useradd.c: Avoid multi-statements lines. * src/useradd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/useradd.c: Ignore the return value of pam_end() before exiting. nekral-guest 2008-06-09 22:08:08 +0000
  • fdb577e0a0 * src/vipw.c: Use a bool when possible instead of int integers. * src/vipw.c: Ignore the return value of umask(), when the mask is set again to the old value. * src/vipw.c: Avoid implicit conversion of pointers / integers to booleans. * src/vipw.c: Add brackets and parenthesis. * src/vipw.c: Avoid assignments in comparisons. * src/vipw.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/vipw.c: Add missing termination of the longopts parameter for getopt_long(). nekral-guest 2008-06-09 21:18:28 +0000
  • 45544f42b9 * src/chgpasswd.c: Use a bool when possible instead of int integers. * src/chgpasswd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/chgpasswd.c: Avoid implicit conversion of integers to booleans. nekral-guest 2008-06-09 20:56:03 +0000
  • 0452fa2458 * src/groupdel.c: Use a bool when possible instead of int integers. * src/groupdel.c: Avoid implicit conversion of pointers / integers to booleans. * src/groupdel.c: Avoid assignments in comparisons. * src/groupdel.c: Ignore the return value of pam_end() before exiting. * src/groupdel.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 20:54:04 +0000
  • 2b92b0f305 * src/expiry.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/expiry.c: Add brackets and parenthesis. * src/expiry.c: Avoid assignments in comparisons. * src/expiry.c: Avoid implicit conversion of pointers to booleans. nekral-guest 2008-06-09 20:36:24 +0000
  • e43c3aed67 Add brackets and parenthesis. nekral-guest 2008-06-09 20:32:17 +0000
  • 6aa98c17bd * src/pwunconv.c: Use a bool when possible instead of int integers. * src/pwunconv.c: Add brackets and parenthesis. * src/pwunconv.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/pwunconv.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/pwunconv.c: Avoid assignments in comparisons. nekral-guest 2008-06-09 20:30:34 +0000
  • a9f1ce0db1 * src/usermod.c: Use a bool when possible instead of int integers. * src/usermod.c: Add brackets and parenthesis. * src/usermod.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/usermod.c: Avoid assignments in comparisons. * src/usermod.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/usermod.c: Ignore the return value of pam_end() before exiting. nekral-guest 2008-06-09 20:17:48 +0000
  • d48973bbc8 * src/groupmems.c: Move the declaration of option_index and long_options before the blocks of code. * src/groupmems.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/groupmems.c: Ignore the return value of pam_end() before exiting. nekral-guest 2008-06-09 20:09:38 +0000
  • 3879f07fa8 * src/chfn.c: Use a bool when possible instead of int integers. * src/chfn.c: Avoid implicit conversion of integers / chars to booleans. * src/chfn.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 20:05:13 +0000
  • 3ea7f76c17 * src/logoutd.c: Use a bool when possible instead of int integers. * src/logoutd.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/logoutd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/logoutd.c: Add brackets and parenthesis. nekral-guest 2008-06-09 20:02:46 +0000
  • 827f8882bc * src/chpasswd.c: Use a bool when possible instead of int integers. * src/chpasswd.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/chpasswd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 19:46:11 +0000
  • 24a7015f64 * src/pwconv.c: Use a bool when possible instead of int integers. * src/pwconv.c: Add brackets and parenthesis. * src/pwconv.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/pwconv.c: Avoid implicit conversion of pointers / integers / chars to booleans. nekral-guest 2008-06-09 19:43:22 +0000
  • 2a267ca05f * NEWS, src/newusers.c: Implement the -r, --system option. * src/newusers.c: Use a bool when possible instead of int integers. * src/newusers.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/newusers.c: Ignore the return value of pam_end() before exiting. * src/newusers.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/newusers.c: Avoid multi-statements lines. * src/newusers.c: Add brackets and parenthesis. nekral-guest 2008-06-09 19:36:08 +0000
  • e41460cae5 * src/gpasswd.c: Use a bool when possible instead of int integers. * src/gpasswd.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/gpasswd.c: Ignore the return value of putchar() and fflush() before exiting. * src/gpasswd.c: check_list() renamed is_valid_user_list(), and return a bool. * src/gpasswd.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 19:26:19 +0000
  • 5e2b49dad4 * src/grpck.c: Use a bool when possible instead of int integers. * src/grpck.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 19:20:00 +0000
  • 5038f6687b * src/lastlog.c: Use a bool when possible instead of int integers. * src/lastlog.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/lastlog.c: Add brackets and parenthesis. * src/lastlog.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). nekral-guest 2008-06-09 19:15:27 +0000
  • 8b98a2e829 * src/userdel.c: Use a bool for the is_shadow_pwd, is_shadow_grp, deleted_user_group, was_member, was_admin, and the options' flags. * src/userdel.c: Change path_prefix() prototype to return a bool. * src/userdel.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/userdel.c: Ignore the return value from pam_end() since we are exiting anyway just afterwards. * src/userdel.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/userdel.c: Add brackets and parenthesis. * src/userdel.c: Avoid assignments in comparisons. * src/userdel.c: Do not ignore the return value of the *_unlock() functions. nekral-guest 2008-06-09 19:10:44 +0000
  • 46466a8fcc * src/login_nopam.c: Do not use the YES and NO macros. Use the booleans true and false instead. Change the prototypes of list_match(), user_match(), from_match(), and string_match() accordingly. Also use booleans internally. * src/login_nopam.c: Add brackets and parenthesis. * src/login_nopam.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/login_nopam.c: Avoid assignments in comparisons. nekral-guest 2008-06-09 18:35:32 +0000
  • 4e0d734598 * src/newgrp.c: Use a bool for is_newgrp, notfound, needspasswd, initflag, and cflag. * src/newgrp.c: Add brackets and parenthesis. * src/newgrp.c: Avoid implicit conversion of pointers / integers / chars to booleans. * src/newgrp.c: Avoid multi-statements lines. * src/newgrp.c: Ignore return value of setlocale(), bindtextdomain(), and textdomain(). * src/newgrp.c: Avoid assignments in comparisons. nekral-guest 2008-06-09 18:23:23 +0000
  • 8cfe8db1fb * libmisc/list.c: Change is_on_list() prototype to return a bool. nekral-guest 2008-06-09 18:13:52 +0000
  • 5ae74603da * libmisc/find_new_ids.c: Change find_new_uid() and find_new_gid() prototypes to use a bool for their first argument (sys_user / sys_group). nekral-guest 2008-06-09 18:13:09 +0000
  • 747664ad4f * libmisc/console.c: Change is_listed() prototype to return a bool. The default parameter should also be a bool. * libmisc/console.c: Add brackets and parenthesis. * libmisc/console.c: Avoid assignments in comparisons. * libmisc/console.c: Change console() prototype to return a bool. nekral-guest 2008-06-09 18:11:20 +0000
  • 9e31065b5e * lib/sgetspent.c: Add brackets and parenthesis. * lib/sgetspent.c: Avoid assignments in comparisons. * lib/sgetspent.c: Avoid implicit conversion of pointers / chars to booleans. * lib/sgetspent.c: Avoid multi-statements lines. nekral-guest 2008-05-26 09:39:29 +0000
  • 004fb5f9c2 Avoid assignments in comparisons. Add note about possible bug. nekral-guest 2008-05-26 09:22:44 +0000
  • da62edb4e0 Do not check twice if fields[2] and fields[3] are not empty. nekral-guest 2008-05-26 09:17:17 +0000
  • adc4729ffa * lib/sgetpwent.c: Avoid implicit conversion of pointers / chars to booleans. * lib/sgetpwent.c: Add brackets and parenthesis. * lib/sgetpwent.c: Return NULL instead of 0. nekral-guest 2008-05-26 09:15:02 +0000
  • 64d0313c5b * Avoid implicit conversion of pointers to booleans. * Add parenthesis. nekral-guest 2008-05-26 09:12:34 +0000
  • 94b414861d * libmisc/getdate.y: abbrev is a bool. * libmisc/getdate.y: Avoid implicit conversion of pointers / chars / integers to booleans. nekral-guest 2008-05-26 08:59:54 +0000
  • 9305161183 * lib/prototypes.h: Fix prototypes according to earlier changes (usage of the bool type). * lib/prototypes.h: Add the arguments' name to the prototypes. nekral-guest 2008-05-26 08:56:34 +0000
  • 297fa24b90 Add protection against multiple inclusions. nekral-guest 2008-05-26 08:53:56 +0000
  • 3ca3362283 Indicate that defines.h is included for the definition of the "bool" type. nekral-guest 2008-05-26 08:52:34 +0000
  • 4f38c8d201 The changed, isopen, locked, and readonly fields of the db are booleans. nekral-guest 2008-05-26 08:51:45 +0000
  • 964f68630a * lib/pwio.h: Add protection against multiple inclusions. * lib/pwio.c: The changed, isopen, locked, and readonly fields of the db are booleans. nekral-guest 2008-05-26 08:49:44 +0000
  • caed1add3a * lib/sgroupio.c: Avoid assignments in comparisons. * lib/sgroupio.c: Add brackets. * lib/sgroupio.c: Avoid implicit conversion of pointers / integers to booleans. * lib/sgroupio.c: The changed, isopen, locked, and readonly fields of the db are booleans. * lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool. * lib/sgroupio.h: Add protection against multiple inclusions. nekral-guest 2008-05-26 08:46:41 +0000
  • 77020623ed * lib/shadowio.h, lib/shadowio.c: spw_file_present returns a bool. * lib/shadowio.h: Add protection against multiple inclusions. nekral-guest 2008-05-26 08:45:34 +0000
  • d264017684 * lib/sgroupio.c: Avoid assignments in comparisons. * lib/sgroupio.c: Add brackets. * lib/sgroupio.c: Avoid implicit conversion of pointers / integers to booleans. * lib/sgroupio.c: The changed, isopen, locked, and readonly fields of the db are booleans. * lib/sgroupio.h, lib/sgroupio.c: sgr_file_present returns a bool. * lib/sgroupio.h: Add protection against multiple inclusions. nekral-guest 2008-05-26 08:43:50 +0000
  • 383ea561f8 * lib/gshadow.c: nis_used and nis_bound are booleans. * lib/gshadow.c: Avoid implicit conversion of pointers / integers to booleans. * lib/gshadow.c: Avoid assignments in comparisons. * lib/gshadow.c: Add brackets. nekral-guest 2008-05-26 08:40:04 +0000
  • ef5e803875 Add protection against multiple inclusion nekral-guest 2008-05-26 08:35:13 +0000
  • 22de221c21 The changed, isopen, locked, and readonly fields of the db are booleans. nekral-guest 2008-05-26 08:34:04 +0000
  • 6f88bcf581 * lib/sgetgrent.c: implicit conversion of pointers / chars to booleans. * lib/sgetgrent.c: Avoid assignments in comparisons. * lib/sgetgrent.c: Add brackets. nekral-guest 2008-05-26 08:31:14 +0000
  • 6ce26e12f5 * lib/encrypt.c: Avoid implicit conversion of pointers to booleans. * lib/encrypt.c: Add parenthesis. nekral-guest 2008-05-26 01:07:13 +0000
  • 09869159f7 * lib/port.c: Avoid implicit conversion of pointers / integers / chars to booleans. * lib/port.c: Avoid multiple statement on the same line. * lib/port.c: Add brackets and parenthesis. * lib/port.c: Avoid assignments in comparisons. * lib/port.c: Fix typo comparision -> comparison (in comment). nekral-guest 2008-05-26 01:05:04 +0000
  • 14839257ac * lib/fputsx.c: Add brackets. * lib/fputsx.c: Avoid assignments in comparisons. * lib/fputsx.c: Avoid implicit conversion of pointers / integers / chars to booleans. nekral-guest 2008-05-26 00:59:42 +0000
  • f16c6bd7dd * lib/commonio.h: commonio_entry.changed, commonio_db.changed, commonio_db.isopen, commonio_db.locked, and commonio_db.readonly are no booleans. * lib/commonio.h: Include defines.h to get the definition of bool. * lib/commonio.h: commonio_present returns a bool * lib/commonio.c: Implement above changes. * lib/commonio.c: add argument names in prototypes. * lib/commonio.c: name_is_nis returns a bool. * lib/commonio.c: nscd_need_reload is a bool. * lib/commonio.c: Improve types (use size_t / pid_t when needed instead of int). * lib/commonio.c: Avoid assignments in comparisons. * lib/commonio.c: Add brackets and parenthesis. * lib/commonio.c: Avoid implicit conversion of pointers / integers to booleans * lib/commonio.c: The return values of utime is not checked on purpose. nekral-guest 2008-05-26 00:46:25 +0000
  • a24aff2148 checkutmp is implemented twice. I only changed the second one. Now fix the first one. nekral-guest 2008-05-26 00:26:33 +0000
  • fc6d8e933b * libmisc/isexpired.c: ARGSUSED is no more needed (shadow is always supported). * libmisc/isexpired.c: Avoid implicit conversion of pointers to booleans. * libmisc/isexpired.c: Add brackets and parenthesis. nekral-guest 2008-05-26 00:14:10 +0000
  • c6364944d4 * libmisc/sulog.c (sulog): The success argument is a bool. * libmisc/sulog.c: The return values of fflush is not checked on purpose. * libmisc/sulog.c: Indicate that some return values should be checked. nekral-guest 2008-05-26 00:09:24 +0000
  • 70ef747a56 Updated copyright dates. nekral-guest 2008-05-26 00:04:30 +0000
  • 3d7aa44c8e * libmisc/ttytype.c: Avoid implicit conversion of pointers / integers to booleans. * libmisc/ttytype.c: Avoid assignments in comparisons. * libmisc/ttytype.c: Add brackets and parenthesis. * libmisc/ttytype.c: The return values of fclose is not checked on purpose. nekral-guest 2008-05-26 00:02:15 +0000
  • c249832df1 * libmisc/mail.c: Avoid implicit conversion of pointers to booleans. * libmisc/mail.c: Avoid assignments in comparisons. nekral-guest 2008-05-25 23:59:05 +0000
  • 3169455653 * libmisc/loginprompt.c: Avoid implicit conversion of pointers / chars to booleans. * libmisc/loginprompt.c: Add brackets. * libmisc/loginprompt.c: Avoid assignments in comparisons. * libmisc/loginprompt.c: The return values of fclose and fflush are not checked on purpose. nekral-guest 2008-05-25 23:57:41 +0000
  • f7122499a6 Avoid implicit conversion of chars to booleans. nekral-guest 2008-05-25 23:50:03 +0000
  • cc7ac94641 selinux_checked, selinux_enabled, and set_orig are now booleans. nekral-guest 2008-05-25 23:45:21 +0000