usb_dev.c (71625ec9ad2a9bc8c09784fbd23b759830e0ee5f) | usb_dev.c (ef9ffb8594eee294334ced627755bf5b46b48f9f) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2006-2023 Hans Petter Selasky 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1214 unchanged lines hidden (view full) --- 1223 m = (void *)1; 1224 } else { 1225 m = NULL; 1226 } 1227 } 1228 return (m ? 1 : 0); 1229} 1230 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause 3 * 4 * Copyright (c) 2006-2023 Hans Petter Selasky 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1214 unchanged lines hidden (view full) --- 1223 m = (void *)1; 1224 } else { 1225 m = NULL; 1226 } 1227 } 1228 return (m ? 1 : 0); 1229} 1230 |
1231static struct filterops usb_filtops_write = { | 1231static const struct filterops usb_filtops_write = { |
1232 .f_isfd = 1, 1233 .f_detach = usb_filter_detach, 1234 .f_event = usb_filter_write, 1235}; 1236 | 1232 .f_isfd = 1, 1233 .f_detach = usb_filter_detach, 1234 .f_event = usb_filter_write, 1235}; 1236 |
1237static struct filterops usb_filtops_read = { | 1237static const struct filterops usb_filtops_read = { |
1238 .f_isfd = 1, 1239 .f_detach = usb_filter_detach, 1240 .f_event = usb_filter_read, 1241}; 1242 1243/* ARGSUSED */ 1244static int 1245usb_kqfilter(struct cdev* dev, struct knote *kn) --- 1226 unchanged lines hidden --- | 1238 .f_isfd = 1, 1239 .f_detach = usb_filter_detach, 1240 .f_event = usb_filter_read, 1241}; 1242 1243/* ARGSUSED */ 1244static int 1245usb_kqfilter(struct cdev* dev, struct knote *kn) --- 1226 unchanged lines hidden --- |