forked from mar-file-system/GUFI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sll methods with unused return values return void
The singly linked list methods sll_push(), sll_move_append(), and sll_move_append_first() return a reference to the list that they operate on. However, this return value is not needed as it does not convey any information to the caller. These functions are called only for their side effects, and in practice all callers (outside of the test suite) ignored the return value. Making these functions return void simplifies the API and makes it clear that they are only used for side effects and no information is conveyed by the return value.
- Loading branch information
1 parent
20f5728
commit 453f65e
Showing
3 changed files
with
41 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters