]> git.ipfire.org Git - thirdparty/systemd.git/commit
Use negative_errno() to assert errno is positive after a few system calls
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 12 Jan 2016 22:25:23 +0000 (17:25 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 18 Jan 2016 19:25:19 +0000 (14:25 -0500)
commit9c4615fb09f559642742d3698ecb5a430c698230
tree2fc38309accc48f0a01c50c12e330ab5baa26f27
parentb3267152783d5784c45010615045d4e8ee459da2
Use negative_errno() to assert errno is positive after a few system calls

This is not particularly intrusive because it happens in simple
utility functions. It helps gcc understand that error codes
are negative.

This gets a rid of most of the remaining warnings.
src/basic/btrfs-util.c
src/basic/clock-util.c
src/basic/path-util.c
src/shared/ask-password-api.c