syslog.c revision f1b68725503ff3e46001eee5a1751e29a43a09d1
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Copyright (C) 2001 Internet Software Consortium.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
9e77d51069a97a21c68184134a0c9847e95490ffMark Andrews * copyright notice and this permission notice appear in all copies.
9e77d51069a97a21c68184134a0c9847e95490ffMark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
9e77d51069a97a21c68184134a0c9847e95490ffMark Andrews * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
9e77d51069a97a21c68184134a0c9847e95490ffMark Andrews * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
9e77d51069a97a21c68184134a0c9847e95490ffMark Andrews * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
9e77d51069a97a21c68184134a0c9847e95490ffMark Andrews * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
e13d04fda918c0c14c2247475bb99e0760d9a6a4Evan Hunt * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
c2bc56dc65b4b103a5600565680eb5f33fa4c90bMark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
cc51cd2d2076e33117c60c9effcb8caccde4983bWitold Krecicki/* $Id: syslog.c,v 1.2 2001/11/27 00:56:20 gson Exp $ */
e99691e566c10f8901b3f66a6b6629705cf78c52Mark Andrewsisc_syslog_facilityfromstring(const char *str, int *facilityp) {
c40265eba0c99708887d68e67901924065ba2514Brian Wellington for (i = 0; facilities[i].strval != NULL; i++) {