]> git.tuebingen.mpg.de Git - paraslash.git/commit
Assume that score_open() and score_clear() always succeed.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 22 Mar 2022 18:33:52 +0000 (19:33 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Mon, 17 Oct 2022 18:36:21 +0000 (20:36 +0200)
commitd5cf034cce34635e065d91350475199adec80232
tree35d04a358d3fb97070372ab2529ecee476ec80fa
parent2391dbc88e15dd54207f289bb4fdbaf0e801b1ca
Assume that score_open() and score_clear() always succeed.

Since the score table has only volatile columns, the only possible
error is memory exhaustion, in which case we can only abort
anyway. This patch changes score_open() to abort if osl_open()
fails. This allows us to let score_clear() return void. We can't get
rid of the return value of score_open(), however, since a pointer to
this function is stored the afs table operations structure.
afs.c
afs.h
mood.c
score.c