int x,y,z;
int x=0,y=0,z=0;
int logLine(struct logInfo *logEnt) {    /* Logs a line... somewhere. */    int x,y,z;    struct stat statbuf;        /* Don't log empty or null lines */    if (!logEnt->line || !strcmp(logEnt->line,"\n")) return 0;    if  ( ((stat(_PATH_LOG,&statbuf)==-1)||(access(_PATH_LOG,W_OK)==-1))	  && (x=startDaemon())	) {	logData=realloc(logData,(logEntries+1)*sizeof(struct logInfo));	logData[logEntries]= (*logEnt);	logEntries++;    } else {	if (logEntries>0) {	    for (x=0;x<logEntries;x++) {		openlog(logData[x].cmd,0,logData[x].fac);		syslog(logData[x].pri,"%s",logData[x].line);		closelog();	    }	    free(logData);	    logEntries = 0;	}	openlog(logEnt->cmd,0,logEnt->fac);	syslog(logEnt->pri,"%s",logEnt->line);	closelog();    }    return 0;}