32 |
char *pos2; |
char *pos2; |
33 |
int count = 0; |
int count = 0; |
34 |
|
|
35 |
// skip the first colon |
/* skip the first colon */ |
36 |
optarg++; |
optarg++; |
37 |
while ((pos = next_arg(optarg, ',')) && *id < RDPDR_MAX_DEVICES) |
while ((pos = next_arg(optarg, ',')) && *id < RDPDR_MAX_DEVICES) |
38 |
{ |
{ |
47 |
strcpy(g_rdpdr_device[*id].local_path, pos2); |
strcpy(g_rdpdr_device[*id].local_path, pos2); |
48 |
printf("PARALLEL %s to %s\n", optarg, pos2); |
printf("PARALLEL %s to %s\n", optarg, pos2); |
49 |
|
|
50 |
// set device type |
/* set device type */ |
51 |
g_rdpdr_device[*id].device_type = DEVICE_TYPE_PARALLEL; |
g_rdpdr_device[*id].device_type = DEVICE_TYPE_PARALLEL; |
52 |
g_rdpdr_device[*id].pdevice_data = (void *) ppar_info; |
g_rdpdr_device[*id].pdevice_data = (void *) ppar_info; |
53 |
g_rdpdr_device[*id].handle = 0; |
g_rdpdr_device[*id].handle = 0; |