Module Name:    src
Committed By:   christos
Date:           Mon Jun 21 03:09:52 UTC 2021

Modified Files:
        src/usr.sbin/hdaudioctl: graph.c hdaudioctl.c

Log Message:
fix proplib deprecation


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/hdaudioctl/graph.c \
    src/usr.sbin/hdaudioctl/hdaudioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/hdaudioctl/graph.c
diff -u src/usr.sbin/hdaudioctl/graph.c:1.5 src/usr.sbin/hdaudioctl/graph.c:1.6
--- src/usr.sbin/hdaudioctl/graph.c:1.5	Mon Jun 15 09:06:39 2020
+++ src/usr.sbin/hdaudioctl/graph.c	Sun Jun 20 23:09:52 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: graph.c,v 1.5 2020/06/15 13:06:39 sborrill Exp $ */
+/* $NetBSD: graph.c,v 1.6 2021/06/21 03:09:52 christos Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <supp...@precedence.co.uk>
@@ -95,7 +95,7 @@ hdaudioctl_graph(int fd, int argc, char 
 		    HDAUDIO_FGRP_WIDGET_INFO, &response);
 		if (error != 0)
 			break;
-		prop_dictionary_get_cstring_nocopy(response, "name", &name);
+		prop_dictionary_get_string(response, "name", &name);
 		prop_dictionary_get_uint32(response, "cap", &cap);
 		prop_dictionary_get_uint32(response, "config", &config);
 		prop_dictionary_get_uint8(response, "type", &type);
@@ -174,7 +174,7 @@ next:
 		    HDAUDIO_AFG_WIDGET_INFO, &response);
 		if (error != 0)
 			break;
-		prop_dictionary_get_cstring_nocopy(response, "name", &name);
+		prop_dictionary_get_string(response, "name", &name);
 		prop_dictionary_get_uint8(response, "type", &type);
 		prop_dictionary_get_uint8(response, "nid", &nid);
 
@@ -197,7 +197,7 @@ next:
 		    HDAUDIO_AFG_WIDGET_INFO, &response);
 		if (error != 0)
 			break;
-		prop_dictionary_get_cstring_nocopy(response, "name", &name);
+		prop_dictionary_get_string(response, "name", &name);
 		prop_dictionary_get_uint8(response, "type", &type);
 		prop_dictionary_get_uint8(response, "nid", &nid);
 
Index: src/usr.sbin/hdaudioctl/hdaudioctl.c
diff -u src/usr.sbin/hdaudioctl/hdaudioctl.c:1.5 src/usr.sbin/hdaudioctl/hdaudioctl.c:1.6
--- src/usr.sbin/hdaudioctl/hdaudioctl.c:1.5	Wed Jul  1 08:19:45 2020
+++ src/usr.sbin/hdaudioctl/hdaudioctl.c	Sun Jun 20 23:09:52 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudioctl.c,v 1.5 2020/07/01 12:19:45 sborrill Exp $ */
+/* $NetBSD: hdaudioctl.c,v 1.6 2021/06/21 03:09:52 christos Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <supp...@precedence.co.uk>
@@ -141,7 +141,7 @@ hdaudioctl_list(int fd)
 		prop_dictionary_get_uint16(dict, "vendor-id", &vendor);
 		prop_dictionary_get_uint16(dict, "product-id", &product);
 		prop_dictionary_get_uint32(dict, "subsystem-id", &subsystem);
-		prop_dictionary_get_cstring_nocopy(dict, "device", &device);
+		prop_dictionary_get_string(dict, "device", &device);
 
 		printf("codecid 0x%02X nid 0x%02X vendor 0x%04X "
 		    "product 0x%04X subsystem 0x%08X device %s\n",

Reply via email to