Lines Matching defs:dsp
40 dhcp_confopt_t *dsp;
42 if (read_dsvc_conf(&dsp) < 0) {
52 dsp = alloca(4 * sizeof (dhcp_confopt_t));
53 dsp[0].co_type = DHCP_COMMENT;
54 dsp[0].co_comment = " Generated by test_confopt";
55 dsp[1].co_type = DHCP_KEY;
56 dsp[1].co_key = "RESOURCE";
57 dsp[1].co_value = "files";
58 dsp[2].co_type = DHCP_KEY;
59 dsp[2].co_key = "PATH";
60 dsp[2].co_value = "/var/dhcp";
61 dsp[3].co_type = DHCP_END;
66 for (i = 0; dsp[i].co_type != DHCP_END; i++) {
67 if (dsp[i].co_type == DHCP_KEY) {
69 dsp[i].co_key, dsp[i].co_value);
70 if (strcmp(dsp[i].co_key, "RESOURCE") == 0) {
71 free(dsp[i].co_value);
72 dsp[i].co_value = strdup("nisplus");
76 dsp[i].co_comment);
81 if (write_dsvc_conf(dsp, 0644) < 0) {
87 free_dsvc_conf(dsp);