Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created November 24, 2011 21:06
Show Gist options
  • Save ThomasLocke/1392293 to your computer and use it in GitHub Desktop.
Save ThomasLocke/1392293 to your computer and use it in GitHub Desktop.
C wrapper used by GNATCOLL.Traces.Syslog
/* Wrapper for syslog (needed by gnatcoll-traces-syslog.adb) */
#include <syslog.h>
void
syslog_wrapper(int priority, const char *log_message)
{
syslog(priority, "%s", log_message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment