projects
/
platform
/
core
/
system
/
crash-worker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918ec37
)
util: Remove unused file_exist()
27/190527/1
author
Karol Lewandowski
<k.lewandowsk@samsung.com>
Wed, 3 Oct 2018 09:27:57 +0000
(11:27 +0200)
committer
Karol Lewandowski
<k.lewandowsk@samsung.com>
Wed, 3 Oct 2018 09:27:57 +0000
(11:27 +0200)
Change-Id: I1e20fc6cd55c9685db304a9aa40b58af56df0c00
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index
b47fd02
..
8273ca2
100644
(file)
--- a/
src/shared/util.c
+++ b/
src/shared/util.c
@@
-146,17
+146,6
@@
int system_command_with_timeout(int timeout_seconds, char *command)
}
}
-int file_exist(const char *file)
-{
- FILE *fp;
-
- fp = fopen(file, "r");
- if (fp == NULL)
- return -1;
- fclose(fp);
- return 1;
-}
-
int write_fd(int fd, const void *buf, int len)
{
int count;