diff options
| author | Russ Allbery <rra@stanford.edu> | 2010-02-09 16:00:04 -0800 | 
|---|---|---|
| committer | Russ Allbery <rra@stanford.edu> | 2010-02-09 16:00:04 -0800 | 
| commit | d05f66dbff10b525d37f60ee01d5b9f94bf5192e (patch) | |
| tree | 36657983c619cfb7260781b2607ead4afc3ad866 /util/messages.c | |
| parent | ccf1cd7efa90bdcbe834e0d4ca144289cca97fd7 (diff) | |
Update util code and import Kerberos portability glue
Use the Kerberos portability layer from rra-c-util 3.0 and avoid
Kerberos API calls deprecated on Heimdal.  Break util/util.h into
separate header files and update all source files accordingly.
The test suite is not yet updated.  That will come in subsequent
commits.
Diffstat (limited to 'util/messages.c')
| -rw-r--r-- | util/messages.c | 29 | 
1 files changed, 9 insertions, 20 deletions
diff --git a/util/messages.c b/util/messages.c index 0a106f6..ef920b2 100644 --- a/util/messages.c +++ b/util/messages.c @@ -51,26 +51,13 @@   * va_list, and the applicable errno value (if any).   *   * Copyright 2008 Board of Trustees, Leland Stanford Jr. University - * Copyright 2004, 2005, 2006 + * Copyright (c) 2004, 2005, 2006   *     by Internet Systems Consortium, Inc. ("ISC") - * Copyright 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, - *     2003 by The Internet Software Consortium and Rich Salz + * Copyright (c) 1991, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + *     2002, 2003 by The Internet Software Consortium and Rich Salz   * - * This code is derived from software contributed to the Internet Software - * Consortium by Rich Salz. - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. -*/ + * See LICENSE for licensing terms. + */  #include <config.h>  #include <portable/system.h> @@ -90,7 +77,9 @@  # define LOG_CRIT       EVENTLOG_ERROR_TYPE  #endif -#include <util/util.h> +#include <util/macros.h> +#include <util/messages.h> +#include <util/xmalloc.h>  /* The default handler lists. */  static message_handler_func stdout_handlers[2] = { @@ -211,7 +200,7 @@ message_log_syslog(int pri, int len, const char *fmt, va_list args, int err)          eventlog = RegisterEventSource(NULL, message_program_name);          if (eventlog != NULL) { -            ReportEvent(eventlog, pri, 0, 0, NULL, 1, 0, &buffer, NULL); +            ReportEvent(eventlog, (WORD) pri, 0, 0, NULL, 1, 0, &buffer, NULL);              CloseEventLog(eventlog);          }      }  | 
