Merged in raiden00/apps (pull request #174)

Small fixes

examples/pca9635/pca9635_main.c: fix compilation

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
raiden00pl 2019-04-28 11:33:21 +00:00 committed by Gregory Nutt
parent 0c6f41912c
commit 0a6726bc3e
2 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@
#include <errno.h> #include <errno.h>
#include <stdio.h> #include <stdio.h>
#include <nuttx/pca9635pw.h> #include <nuttx/leds/pca9635pw.h>
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@ -108,3 +108,4 @@ int pca9635_main(int argc, char *argv[])
close(fd); close(fd);
return 0; return 0;
}

View File

@ -85,14 +85,13 @@
static int usbtrace_syslog(FAR const char *fmt, ...) static int usbtrace_syslog(FAR const char *fmt, ...)
{ {
va_list ap; va_list ap;
int ret;
/* Let vsyslog do the real work */ /* Let vsyslog do the real work */
va_start(ap, fmt); va_start(ap, fmt);
ret = vsyslog(LOG_INFO, fmt, ap); vsyslog(LOG_INFO, fmt, ap);
va_end(ap); va_end(ap);
return ret; return OK;
} }
/**************************************************************************** /****************************************************************************