# arch-tag: automatic-ChangeLog--srvx@srvx.net--2006/srvx--devo--1.3
#
+2006-10-27 00:35:00 GMT Michael Poole <mdpoole@troilus.org> patch-64
+
+ Summary:
+ Make maintainer-mode use C89 mode.
+ Revision:
+ srvx--devo--1.3--patch-64
+
+ configure.in (CFLAGS): Use -ansi in maintainer mode.
+ (AC_C_INLINE): Test after setting -Werror.
+
+ src/chanserv.c (cmd_adduser): Fix comment formatting.
+ (cmd_clvl): Likewise.
+ (cmd_deluser): Likewise.
+
+ modified files:
+ ChangeLog configure.in src/chanserv.c
+
+
2006-10-27 00:21:32 GMT Michael Poole <mdpoole@troilus.org> patch-63
Summary:
dnl Compiler/runtime feature checks.
AC_TYPE_SIGNAL
AC_C_CONST
-AC_C_INLINE
+dnl "const" *should* be in the -Werror section, but that breaks Linux. gg gcc.
dnl Checks for programs.
AC_PROG_AWK
dnl Can only check with -Werror, but the rest of configure doesn't like -Werror
OLD_CFLAGS=$CFLAGS
CFLAGS="$CFLAGS -W -Wall -Werror"
+if test "z$USE_MAINTAINER_MODE" = zyes ; then
+ CFLAGS="$CFLAGS -ansi"
+fi
+
+dnl Check for post-C89 keywords
+AC_C_INLINE
dnl Now figure out how to printf() a time_t
AC_MSG_CHECKING(for time_t format)
MY_SUBDIRS="$MY_SUBDIRS src"
CFLAGS="$CFLAGS $ANSI_SRC -W -Wall"
if test "z$USE_MAINTAINER_MODE" = zyes ; then
- CFLAGS="$CFLAGS -Werror"
+ CFLAGS="$CFLAGS -Werror -ansi"
fi
AC_DEFINE_UNQUOTED(CODENAME, "${CODENAME}", [Code name for this release])
return 0;
}
- // Trying to add someone with equal/more access
+ /* Trying to add someone with equal/more access? */
if (!real_actor || real_actor->access <= access)
override = CMD_LOG_OVERRIDE;
return 0;
}
- // Trying to clvl a equal/higher user
+ /* Trying to clvl a equal/higher user? */
if(!real_actor || (real_actor->access <= victim->access && handle != user->handle_info))
override = CMD_LOG_OVERRIDE;
- // Trying to clvl someone to equal/higher access
+ /* Trying to clvl someone to equal/higher access? */
if(!real_actor || new_access >= real_actor->access)
override = CMD_LOG_OVERRIDE;
- // Helpers clvling themselves get caught by the "clvl someone to equal/higher access" check.
- // If they lower their own access it's not a big problem.
+ /* Helpers clvling themselves get caught by the "clvl someone to equal/higher access" check.
+ * If they lower their own access it's not a big problem.
+ */
victim->access = new_access;
reply("CSMSG_CHANGED_ACCESS", handle->handle, new_access, channel->name);
return 0;
}
- // If people delete themselves it is an override, but they could've used deleteme so we don't log it as an override
+ /* If people delete themselves it is an override, but they
+ * could've used deleteme so we don't log it as an override
+ */
if(!real_actor || (real_actor->access <= victim->access && real_actor != victim))
override = CMD_LOG_OVERRIDE;