2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

util: Make xreadlink a static function.

It is only used in util.c

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-02-13 10:21:04 -08:00
parent 97ba2d36f6
commit ac01d085e1
2 changed files with 3 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ DEFINE_STATIC_PER_THREAD_DATA(struct { char s[128]; },
strerror_buffer,
{ "" });
static char *xreadlink(const char *filename);
void
ovs_assert_failure(const char *where, const char *function,
const char *condition)
@@ -745,7 +747,7 @@ abs_file_name(const char *dir, const char *file_name)
/* Like readlink(), but returns the link name as a null-terminated string in
* allocated memory that the caller must eventually free (with free()).
* Returns NULL on error, in which case errno is set appropriately. */
char *
static char *
xreadlink(const char *filename)
{
size_t size;