summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authortaeyoung <ty317.kim@samsung.com>2016-09-23 16:35:45 +0900
committertaeyoung <ty317.kim@samsung.com>2016-09-23 17:10:58 +0900
commitd25dbaed77aeb19345d57af73f64989a1d5e6265 (patch)
treeae942af9a18b406470a7a56c8e4f1c6052cc0181 /examples
parente45f1517b996d57654d5edf918981fe2d64a575f (diff)
downloadlibusbg-d25dbaed77aeb19345d57af73f64989a1d5e6265.tar.gz
libusbg-d25dbaed77aeb19345d57af73f64989a1d5e6265.tar.bz2
libusbg-d25dbaed77aeb19345d57af73f64989a1d5e6265.zip
common: fix minor issues.submit/tizen/20160923.084807
- thread unsafe functions are removed. - sprintf is changed to snprintf Change-Id: I129984005ae538496a1135cbc8a191f588a432ff Signed-off-by: taeyoung <ty317.kim@samsung.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/gadget-export.c2
-rw-r--r--examples/gadget-import.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/gadget-export.c b/examples/gadget-export.c
index 9d51e9e..15059fa 100644
--- a/examples/gadget-export.c
+++ b/examples/gadget-export.c
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
/* Prepare output file */
output = fopen(argv[2], "w");
if (!output) {
- fprintf(stderr, "Error on fopen. Error: %s\n", strerror(errno));
+ fprintf(stderr, "Error on fopen. Error: %d\n", errno);
goto out1;
}
diff --git a/examples/gadget-import.c b/examples/gadget-import.c
index e684fdb..a57e5da 100644
--- a/examples/gadget-import.c
+++ b/examples/gadget-import.c
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
/* Prepare input file */
input = fopen(argv[2], "r");
if (!input) {
- fprintf(stderr, "Error on fopen. Error: %s\n", strerror(errno));
+ fprintf(stderr, "Error on fopen. Error: %d\n", errno);
goto out1;
}