Browse Source

Cleanup camd ident handling.

Georgi Chorbadzhiyski 12 years ago
parent
commit
bd27f201c8
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      camd-cs378x.c
  2. 1
    1
      camd-newcamd.c
  3. 1
    1
      data.h

+ 1
- 1
camd-cs378x.c View File

@@ -172,7 +172,7 @@ READ:
172 172
 }
173 173
 
174 174
 void camd_proto_cs378x(struct camd_ops *ops) {
175
-	strcpy(ops->ident, "cs378x");
175
+	ops->ident      = "cs378x";
176 176
 	ops->proto		= CAMD_CS378X;
177 177
 	ops->connect	= cs378x_connect;
178 178
 	ops->disconnect	= cs378x_disconnect;

+ 1
- 1
camd-newcamd.c View File

@@ -422,7 +422,7 @@ static int newcamd_get_cw(struct camd *c, uint16_t *ca_id, uint16_t *idx, uint8_
422 422
 }
423 423
 
424 424
 void camd_proto_newcamd(struct camd_ops *ops) {
425
-	strcpy(ops->ident, "newcamd");
425
+	ops->ident      = "newcamd";
426 426
 	ops->proto		= CAMD_NEWCAMD;
427 427
 	ops->connect	= newcamd_connect;
428 428
 	ops->disconnect	= newcamd_disconnect;

+ 1
- 1
data.h View File

@@ -88,7 +88,7 @@ enum camd_proto {
88 88
 };
89 89
 
90 90
 struct camd_ops {
91
-	char ident[16];
91
+	char *ident;
92 92
 	enum camd_proto proto;
93 93
 	int (*connect)(struct camd *c);
94 94
 	void (*disconnect)(struct camd *c);

Loading…
Cancel
Save