summaryrefslogtreecommitdiff
path: root/src/ata_id/ata_id.c
AgeCommit message (Collapse)Author
2015-05-27ata_id: drop spurious spaceLennart Poettering
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2015-01-07udev: improve help/usage for some more programsRobert Milasan
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29ata_id: remove temp variable to kill warningZbigniew Jędrzejewski-Szmek
src/ata_id/ata_id.c:503:24: warning: assignment from incompatible pointer type identify_words = &identify.wyde; ^ Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29ata_id: modernizeZbigniew Jędrzejewski-Szmek
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-29udev: fix another strict aliasing issueShawn Paul Landden
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-12-01treewide: use log_*_errno whenever %m is in the format stringMichal Schmidt
If the format string contains %m, clearly errno must have a meaningful value, so we might as well use log_*_errno to have ERRNO= logged. Using: find . -name '*.[ch]' | xargs sed -r -i -e \ 's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/' Plus some whitespace, linewrap, and indent adjustments. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-11-14udev: switch to systemd logging functionsKay Sievers
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-08-12udev: never bypass our own logging framework and call vsyslog() directly ↵Lennart Poettering
from udev tools Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-04-05Revisit issue #87: fails to build on linux headers 3.13Anthony G. Basile
We switch to defining _GNU_SOURCE as we do for cdrom_id.c for a more consistant approach to this issue. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-22Revisit issue #87: fails to build on linux headers 3.13Anthony G. Basile
Dropping <fcntl.h> in favor of <linux/fcntl.h> is incorrect. Yet uClibc needs O_CLOEXEC from <linux/fcntl.h>. So we re-introduce <fcntl.h> and include <linux/fcntl.h> only on uClibc systems to avoid redefinitions. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-15Fix issue #87: fails to build on linux headers 3.13Anthony G. Basile
Commit 80b10107cb added #include <linux/fcntl.h> in src/accelerometer and friends for builds on uclibc. This only works with glibc and musl systems with linux headers 3.9 but fails with linux headers 3.13. We keep <linux/fcntl.h> but drop <fcntl.h>. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-03-09builtins: add <linux/fcntl.h> for uclibcAnthony G. Basile
2014-02-21everywhere: always use O_CLOEXEC where it makes senseLennart Poettering
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-01-14src/libudev: bring in line with upstreamAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2014-01-09Add more _printf_'s for format-nonliteralsThomas Hindoe Paaboel Andersen
Clang is a bit more strict wrt format-nonliterals: http://clang.llvm.org/docs/LanguageExtensions.html#format-string-checking Adding these extra printf attributes also makes gcc able to find more problems. E.g. this patch uncovers a format issue in udev-builtin-path_id.c Some parts looked intetional about breaking the format-nonliteral check. I added some supression for warnings there. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02udev/ata_id: zero out variable properlyZbigniew Jędrzejewski-Szmek
b8a2b0f76 'use initalization instead of explicit zeroing' introduced a bug where only the first sizeof(uint_t*) bytes would be zeroed out, instead of the whole array.
2013-06-02udev/ata_id: use initalization instead of explicit zeroingZbigniew Jędrzejewski-Szmek
2012-11-17Restructure src/ as per lu_zeroAnthony G. Basile