On Tue, May 26, 2009 11:59, Pierre Ynard wrote: > + if( psz_facility ) > + { > + if( !strcmp( psz_facility, "daemon" ) ) > + ; > + else if( !strcmp( psz_facility, "local0" ) ) > + { > + i_facility = LOG_LOCAL0; > + } [and so on] I'd like this to use table lookup, even linear search would do.