Bug#990265: utilities and write errors

2021-06-29 Thread mirabilos
output. In scripts, I’d expect writing “x=$(pwd)” instead of “pwd >x; x=$(cat x)”, but the latter is necessary in some cases (e.g. escaping subshells, pipelines, etc). In those situations, it would be nice if “pwd >x” failed, even if it’s no problem of pwd(1) strictly spoken. That’s my nightly

Bug#870396: [PATCH 2/3] pcm: explicitly cast time types to types printf can handle

2020-01-23 Thread mirabilos
Signed-off-by: mirabilos --- src/pcm/pcm.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pcm/pcm.c b/src/pcm/pcm.c index 1064044c..eb53311c 100644 --- a/src/pcm/pcm.c +++ b/src/pcm/pcm.c @@ -2329,11 +2329,11 @@ int snd_pcm_status_dump(snd_pcm_status_t *status

Bug#870396: [PATCH 1/3] pcm: ensure amd64-specific asm code is not used on x32

2020-01-23 Thread mirabilos
This fixes segfaults on x32 systems. Signed-off-by: mirabilos --- src/pcm/pcm_dmix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index d533f40c..407f644d 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -142,7 +142,7

Bug#870396: [PATCH 3/3] test: explicitly cast time types to types printf can handle

2020-01-23 Thread mirabilos
Also (as requested by Takashi Iwai), convert timediff() to time_t, as it’s the proper return type. Signed-off-by: mirabilos --- test/latency.c | 10 +- test/queue_timer.c | 10 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/test/latency.c b/test