summaryrefslogtreecommitdiff
path: root/otap_create.c
diff options
context:
space:
mode:
authorAlberto Ruiz <alberto.ruiz@codethink.co.uk>2011-09-26 16:59:58 +0100
committerAlberto Ruiz <alberto.ruiz@codethink.co.uk>2011-09-26 16:59:58 +0100
commit38a840730207e0708d4845f2221e56bf28d2029e (patch)
tree9298679b96fa4137b3b3257efbd098a7b797f470 /otap_create.c
parent69e641712cea78fbeb16539d8c307062a821ef58 (diff)
downloadtbdiff-38a840730207e0708d4845f2221e56bf28d2029e.tar.gz
Creating of special devices complete
Diffstat (limited to 'otap_create.c')
-rw-r--r--otap_create.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/otap_create.c b/otap_create.c
index 92f8660..08e9c9b 100644
--- a/otap_create.c
+++ b/otap_create.c
@@ -388,8 +388,8 @@ _otap_create_cmd_symlink_delta (FILE *stream,
}
static int
-_otap_create_cmd_special_create (FILE *stream,
- otap_stat_t *nod)
+_otap_create_cmd_special_create (FILE *stream,
+ otap_stat_t *nod)
{
struct stat info;
char *nodpath = otap_stat_path (nod);
@@ -413,7 +413,7 @@ _otap_create_cmd_special_create (FILE *stream,
if (err != 0)
return err;
- return _otap_create_fwrite_dev (stream, info.st_dev);
+ return _otap_create_fwrite_dev (stream, info.st_rdev);
}
static int