summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-09-20 11:08:15 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-09-20 11:08:15 -0700
commit6d16a15196857eb4fe2eb4ca3cf363f1221afe60 (patch)
tree066da5a9aed77f145f5c942d2780df298a6a6b2d /display-gtk.h
parent4f920b71aae7ecb1470888b95c472c1f794486bc (diff)
downloadsubsurface-6d16a15196857eb4fe2eb4ca3cf363f1221afe60.tar.gz
FIND_TRIP: don't cast a timestamp to a pointer
The pointer size may not be large enough to contain a timestamp, so make FIND_TRIP() just pass the pointer to the timestamp instead. And use an inline function instead of macros with casts. That gets us proper type safety while at it, so that we get a warning if somebody doesn't pass the expected "timestamp_t *". Plus the code actually looks simpler and way more straightforward. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'display-gtk.h')
0 files changed, 0 insertions, 0 deletions