diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-08-22 11:13:49 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-08-22 11:13:49 -0700 |
commit | 2d110721bf91569a165aa35baf5c9433158075ec (patch) | |
tree | a647d971107a7a4e8eb18c64de4e2fbf1fd604db /multimedia/pwcbsd/files/patch-pwc-v4l.c | |
parent | multimedia/pwcbsd: Remove devclass from DRIVER_MODULE on recent main. (diff) |
multimedia/pwcbsd: Clean up local patches.
- Convert unconditional EXTRA_PATCHES to regular patches (they used to
be conditional on an OSVERSION check removed several years ago)
- Regenerate patches with make makepatch to ease future maintenance.
Differential Revision: https://reviews.freebsd.org/D35949
Diffstat (limited to 'multimedia/pwcbsd/files/patch-pwc-v4l.c')
-rw-r--r-- | multimedia/pwcbsd/files/patch-pwc-v4l.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/multimedia/pwcbsd/files/patch-pwc-v4l.c b/multimedia/pwcbsd/files/patch-pwc-v4l.c new file mode 100644 index 000000000000..0e6abb66864c --- /dev/null +++ b/multimedia/pwcbsd/files/patch-pwc-v4l.c @@ -0,0 +1,11 @@ +--- pwc-v4l.c.orig 2006-06-07 20:15:52 UTC ++++ pwc-v4l.c +@@ -67,7 +67,7 @@ int pwc_video_do_ioctl(struct pwc_softc *pdev, unsigne + { + struct video_capability *caps = arg; + +- strncpy(caps->name, pdev->name, sizeof(caps->name) - 1); ++ strncpy(caps->name, device_get_desc(pdev->sc_dev), sizeof(caps->name) - 1); + caps->name[sizeof(caps->name) - 1] = '\0'; + caps->type = VID_TYPE_CAPTURE; + caps->channels = 1; |