cutils: Provide strchrnul
strchrnul is a GNU extension and thus unavailable on a number of targets. In the review for a commit removing strchrnul from 9p, I was asked to create a qemu_strchrnul helper to factor out this functionality. Do so, and use it in a number of other places in the code base that inlined the replacement pattern in a place where strchrnul could be used. Signed-off-by:Keno Fischer <keno@juliacomputing.com> Acked-by:
Greg Kurz <groug@kaod.org> Reviewed-by:
Markus Armbruster <armbru@redhat.com> Signed-off-by:
Greg Kurz <groug@kaod.org>
Showing
- configure 18 additions, 0 deletionsconfigure
- hmp.c 4 additions, 4 deletionshmp.c
- hw/9pfs/9p-local.c 1 addition, 1 deletionhw/9pfs/9p-local.c
- include/qemu/cutils.h 8 additions, 0 deletionsinclude/qemu/cutils.h
- monitor.c 2 additions, 6 deletionsmonitor.c
- util/cutils.c 15 additions, 0 deletionsutil/cutils.c
- util/qemu-option.c 1 addition, 5 deletionsutil/qemu-option.c
- util/uri.c 2 additions, 4 deletionsutil/uri.c
Loading
Please register or sign in to comment