[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH 4/4] Describe gps_mainloop()
From: |
Fred Wright |
Subject: |
Re: [gpsd-dev] [PATCH 4/4] Describe gps_mainloop() |
Date: |
Sat, 4 Mar 2017 15:33:39 -0800 (PST) |
Merged all four patches in this set.
A couple of notes:
1) "UNUSED" is for warning suppression, not a "hint". I'm not sure why
GPSD doesn't like the usual cast-to-void approach to this.
2) An alternative way to do the "looper" thing is:
uint looper = 0;
...
do {
...
} while (--looper);
This loops exactly "looper" times, automatically treats 0 as 2^N, and
doesn't need an extra variable.
Fred Wright