diff options
author | taeyoung <ty317.kim@samsung.com> | 2016-09-23 16:35:45 +0900 |
---|---|---|
committer | taeyoung <ty317.kim@samsung.com> | 2016-09-23 17:10:58 +0900 |
commit | d25dbaed77aeb19345d57af73f64989a1d5e6265 (patch) | |
tree | ae942af9a18b406470a7a56c8e4f1c6052cc0181 /examples | |
parent | e45f1517b996d57654d5edf918981fe2d64a575f (diff) | |
download | libusbg-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.c | 2 | ||||
-rw-r--r-- | examples/gadget-import.c | 2 |
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; } |