summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Julian Andres Klode <jak@jak-linux.org>2011-10-06 21:08:48 +0200
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-06 12:25:24 -0700
commit4c6f142e85969708983e2ffd7d413e01ac84b176 (patch)
treeef889015998a92f2d168380cf3c46d3128f898de /save-xml.c
parentb6f6107be1be09536f16a84c20af1604e99d6d5c (diff)
downloadsubsurface-4c6f142e85969708983e2ffd7d413e01ac84b176.tar.gz
Remove some useless casts from and to void pointers
Remove casts from/to void*. They are unneeded in C, can hide problems in the future, and are far too C++ish. Furthermore, they were inconsistent with the rest of the code and even with regards to themselves (at least in terms of whether or not to have space after the cast). In this case, we temporarily lose const specifiers in libdivecomputer.c due to the unneeded cast, so it seems better to avoid the cast at all, so you get warned about a const->non-const cast if you ever change it to do something like this. The casts in gtk-gui.c are just useless semantically, although they might be useful as a hint to the reader that the void pointers are char arrays. Signed-off-by: Julian Andres Klode <jak@jak-linux.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'save-xml.c')
0 files changed, 0 insertions, 0 deletions