summaryrefslogtreecommitdiff
path: root/extras/ata_id/ata_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2011-10-06 01:10:59 +0200
committerKay Sievers <kay.sievers@vrfy.org>2011-10-06 01:10:59 +0200
commit0bbe8838e75bf97792d61b33f8592a32f1fc8bd4 (patch)
treeed9c94996deef6d333599c022298828427b3d1cd /extras/ata_id/ata_id.c
parent289a1821a4a7636ce42a6c7adc3a9bb49421a5ea (diff)
libudev: export udev_util_encode_string()
Diffstat (limited to 'extras/ata_id/ata_id.c')
-rw-r--r--extras/ata_id/ata_id.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c
index cadadfc27f..e38a7d1aa5 100644
--- a/extras/ata_id/ata_id.c
+++ b/extras/ata_id/ata_id.c
@@ -547,12 +547,12 @@ int main(int argc, char *argv[])
memcpy (model, id.model, 40);
model[40] = '\0';
udev_util_encode_string(model, model_enc, sizeof(model_enc));
- udev_util_replace_whitespace((char *) id.model, model, 40);
- udev_util_replace_chars(model, NULL);
- udev_util_replace_whitespace((char *) id.serial_no, serial, 20);
- udev_util_replace_chars(serial, NULL);
- udev_util_replace_whitespace((char *) id.fw_rev, revision, 8);
- udev_util_replace_chars(revision, NULL);
+ util_replace_whitespace((char *) id.model, model, 40);
+ util_replace_chars(model, NULL);
+ util_replace_whitespace((char *) id.serial_no, serial, 20);
+ util_replace_chars(serial, NULL);
+ util_replace_whitespace((char *) id.fw_rev, revision, 8);
+ util_replace_chars(revision, NULL);
if (export) {
/* Set this to convey the disk speaks the ATA protocol */