Module Name: src Committed By: christos Date: Mon Jun 21 03:14:12 UTC 2021
Modified Files: src/sbin/devpubd: devpubd.c Log Message: fix proplib deprecation To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sbin/devpubd/devpubd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/devpubd/devpubd.c diff -u src/sbin/devpubd/devpubd.c:1.6 src/sbin/devpubd/devpubd.c:1.7 --- src/sbin/devpubd/devpubd.c:1.6 Mon Feb 24 06:45:30 2020 +++ src/sbin/devpubd/devpubd.c Sun Jun 20 23:14:12 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: devpubd.c,v 1.6 2020/02/24 11:45:30 mlelstv Exp $ */ +/* $NetBSD: devpubd.c,v 1.7 2021/06/21 03:14:12 christos Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill <jmcne...@invisible.ca> @@ -36,7 +36,7 @@ #include <sys/cdefs.h> __COPYRIGHT("@(#) Copyright (c) 2011-2015\ Jared D. McNeill <jmcne...@invisible.ca>. All rights reserved."); -__RCSID("$NetBSD: devpubd.c,v 1.6 2020/02/24 11:45:30 mlelstv Exp $"); +__RCSID("$NetBSD: devpubd.c,v 1.7 2021/06/21 03:14:12 christos Exp $"); #include <sys/queue.h> #include <sys/types.h> @@ -144,8 +144,8 @@ devpubd_eventloop(void) res = prop_dictionary_recv_ioctl(drvctl_fd, DRVGETEVENT, &ev); if (res) err(EXIT_FAILURE, "DRVGETEVENT failed"); - prop_dictionary_get_cstring_nocopy(ev, "event", &event); - prop_dictionary_get_cstring_nocopy(ev, "device", &device[0]); + prop_dictionary_get_string(ev, "event", &event); + prop_dictionary_get_string(ev, "device", &device[0]); printf("%s: event='%s', device='%s'\n", __func__, event, device[0]);