I'm farting around with UW's imap kit, imap-2006i. I want to have the syslog facility set based on the running service.
Here's the call to server_init() from imap.c:
server_init (pgmname,"imap","imaps",clkint,kodint,hupint,trmint);
Here's the function definition from env_unix.c:
void server_init (char *server,char *service,char *sslservice,
void *clkint,void *kodint,void *hupint,void *trmint)
The line I'm trying to get to make work looks like this:
openlog (myServerName = cpystr (server), LOG_PID, (service=="imap") ? LOG_LOCAL2 : LOG_LOCAL0);
The ternary always returns the false value, LOG_LOCAL0. It's been forever since I did anything useful with C... what am I missing here?