# fixups · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/9bf283c0851b39d6c54d1f5dfb5c2c55cd0a1ab0)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 9bf283c0851b39d6c54d1f5dfb5c2c55cd0a1ab0

Requested commit: 9bf283c0851b39d6c54d1f5dfb5c2c55cd0a1ab0

Commit: 9bf283c0851b39d6c54d1f5dfb5c2c55cd0a1ab0

Tree: 44eeb261c01821f2a6d442ae01db83c7fbca671f

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fixups

 * getrandom libc prototypes had the wrong return type
 * `total_read` local variable was unnecessary since the sub-slice
   buffer has a length
 * I was able to get rid of all the integer casts
 * the err == 0 check can be a switch case
 * add missing `return` statement

```

## Parents

- [79354243e32b0e64f4dc93bb581ff1b3061e3861](https://git.cafe/gitcafe/zig/commit/79354243e32b0e64f4dc93bb581ff1b3061e3861?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/9bf283c0851b39d6c54d1f5dfb5c2c55cd0a1ab0?format=markdown)
