From 8ea07e430df35634c09dc63d8c0cb644522bbe69 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Jan 2008 12:17:33 +0100 Subject: [PATCH] move get_filename as well --- file.c | 10 ++++++++++ list.c | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/file.c b/file.c index 6f43715..7e5a8ac 100644 --- a/file.c +++ b/file.c @@ -564,6 +564,16 @@ int uci_load(struct uci_context *ctx, const char *name, struct uci_package **pac return uci_import(ctx, file, name, package); } +static inline char *get_filename(char *path) +{ + char *p; + + p = strrchr(path, '/'); + p++; + if (!*p) + return NULL; + return p; +} char **uci_list_configs(struct uci_context *ctx) { diff --git a/list.c b/list.c index 2142b71..066a9fd 100644 --- a/list.c +++ b/list.c @@ -215,14 +215,4 @@ found: return 0; } -static inline char *get_filename(char *path) -{ - char *p; - - p = strrchr(path, '/'); - p++; - if (!*p) - return NULL; - return p; -} -- 2.25.1