slcand: style fixes.
parent
9ef196a25d
commit
d98f199b46
6
slcand.c
6
slcand.c
|
|
@ -58,15 +58,16 @@
|
||||||
void fake_syslog(int priority, const char *format, ...)
|
void fake_syslog(int priority, const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
printf("[%d] ", priority);
|
printf("[%d] ", priority);
|
||||||
va_start(ap, format);
|
va_start(ap, format);
|
||||||
vprintf(format, ap);
|
vprintf(format, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
typedef void (*syslog_t)(int priority, const char*format, ...);
|
|
||||||
syslog_t syslogger;
|
|
||||||
|
|
||||||
|
typedef void (*syslog_t)(int priority, const char *format, ...);
|
||||||
|
static syslog_t syslogger = syslog;
|
||||||
|
|
||||||
void print_usage(char *prg)
|
void print_usage(char *prg)
|
||||||
{
|
{
|
||||||
|
|
@ -199,7 +200,6 @@ int main(int argc, char *argv[])
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
ttypath[0] = '\0';
|
ttypath[0] = '\0';
|
||||||
syslogger = syslog;
|
|
||||||
|
|
||||||
while ((opt = getopt(argc, argv, "ocfls:S:t:b:?hF")) != -1) {
|
while ((opt = getopt(argc, argv, "ocfls:S:t:b:?hF")) != -1) {
|
||||||
switch (opt) {
|
switch (opt) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue