r328075 appears to break sbin/fsdb

David Wolfskill david at catwhisker.org
Wed Jan 17 12:20:04 UTC 2018


As O. Hartmann noted (in svn-src-head@), the change to rename cgget to
cglookup also affects fsdb:

--- all_subdir_sbin/fsdb ---
--- fsdb.o ---
/usr/src/sbin/fsdb/fsdb.c:479:9: error: implicit declaration of function 'cgget' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        cgbp = cgget(c);
               ^
/usr/src/sbin/fsdb/fsdb.c:479:7: error: incompatible integer to pointer conversion assigning to 'struct bufarea *' from 'int' [-Werror,-Wint-conversion]
        cgbp = cgget(c);
             ^ ~~~~~~~~
2 errors generated.
--- all_subdir_usr.bin ---


I suspect that replacing "cgget" with "cglookup" in
src/sbin/fsdb/fsdb.c:479 will fix it.

Peace,
david
-- 
David H. Wolfskill				david at catwhisker.org
"unfortunately, no trust!” -- well, of course!  You reap what you sow.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20180117/743a3d38/attachment.sig>


More information about the freebsd-current mailing list