Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-9] src/usr.bin/audio



Module Name:    src
Committed By:   martin
Date:           Fri Aug 23 17:16:28 UTC 2024

Modified Files:
        src/usr.bin/audio/common [netbsd-9]: wav.c
        src/usr.bin/audio/record [netbsd-9]: record.c

Log Message:
Pull up following revision(s) (requested by mrg in ticket #1874):

        usr.bin/audio/common/wav.c: revision 1.23
        usr.bin/audio/record/record.c: revision 1.59

fix some sizeof() confusion.

using "const char search[4]" as a function parameter means that
"search" is actually a pointer type so "sizeof search" returns
8 on 64-bit platforms.  i mis-read this and used "sizeof *search"
which is always 1, noted by rillig.

instead of trying to avoid writing "4" twice, put it in a define
and use that in various places instead.  annoying.
match message & conversion function name properly.

probably should make this into an array with two members.


To generate a diff of this commit:
cvs rdiff -u -r1.14.6.2 -r1.14.6.3 src/usr.bin/audio/common/wav.c
cvs rdiff -u -r1.54.18.1 -r1.54.18.2 src/usr.bin/audio/record/record.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index