From d81edb09cf29dd36d50ce7a7bcf55631fecc470f Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 29 Dec 2012 16:01:24 -0800 Subject: whitespace/formatting --- apps/systemcmds/mixer/mixer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/systemcmds') diff --git a/apps/systemcmds/mixer/mixer.c b/apps/systemcmds/mixer/mixer.c index 8d73bfcc4..e2f7b5bd5 100644 --- a/apps/systemcmds/mixer/mixer.c +++ b/apps/systemcmds/mixer/mixer.c @@ -117,6 +117,8 @@ load(const char *devname, const char *fname) if ((strlen(line) < 2) || !isupper(line[0]) || (line[1] != ':')) continue; + /* XXX an optimisation here would be to strip extra whitespace */ + /* if the line is too long to fit in the buffer, bail */ if ((strlen(line) + strlen(buf) + 1) >= sizeof(buf)) break; -- cgit v1.2.3