return p;
}
+char *
+xstrdup(char *str)
+{
+ int len = strlen(str) + 1;
+ char *copy = xmalloc(len);
+ memcpy(copy, str, len);
+ return copy;
+}
+
static void
set_pci_method(struct pci_access *pacc, char *arg)
{
{
switch (i)
{
-#ifdef PCI_HAVE_PM_LINUX_PROC
- case 'P':
- pci_set_param(pacc, "proc.path", optarg);
- pacc->method = PCI_ACCESS_PROC_BUS_PCI;
- break;
-#endif
#ifdef PCI_HAVE_PM_INTEL_CONF
case 'H':
if (!strcmp(optarg, "1"))