# make std.c.getErrno\(\) return same type as \_errno\(\) aka c_int · gitcafe/zig

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

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

Visibility: public

Requested revision: 89e522b935a8cca96b2e6d0cce0515a1eb8e6451

Requested commit: 89e522b935a8cca96b2e6d0cce0515a1eb8e6451

Commit: 89e522b935a8cca96b2e6d0cce0515a1eb8e6451

Tree: 937a1ea13abd2cf8bae6b6f48f44230dd8ab5ae4

Author: Sébastien Marie

Committer: Isaac Freund

## Message

```
make std.c.getErrno() return same type as _errno() aka c_int

adjust std.os.unexpectedErrno() to be correct for all std.os.system.errno (c_int, u12, usize, ...)

```

## Parents

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

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