]> git.tuebingen.mpg.de Git - paraslash.git/commit
Simplify row_belongs_to_score_table().
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 10 Mar 2022 19:27:08 +0000 (20:27 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commitebb53a6a2d300d33832ffa51aa8e1100c4d700e6
treefb00ba9228617c0690f6d6aaed8eea4015704042
parent2bc9900a9712dc70b694425857d6b7293b23a887
Simplify row_belongs_to_score_table().

This function was over-engineered because only one caller passed a
non-NULL rank pointer without actually using the rank for anything
other than printing it in a log message. So drop the rank parameter
and adjust the callers and the log message accordingly.

Moreover, the function returned int rather than bool to be able to
also return an error code in case the osl lookup function fails. This
should never happen though, because the only possible errors are
invalid row or table pointers, and these indicate a bug. So abort in
this case and let the function return bool.
afs.h
mood.c
playlist.c
score.c