diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-08-27 16:15:41 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-08-27 16:15:41 +0200 |
commit | fb17920701dcba0d94e3fde566788a868e41d1ad (patch) | |
tree | 7667c49dd48312ec58ab12d4da92cb9206bb6b69 /udev_utils.h | |
parent | 314edf3ca44b268fa70a7a87a106322e2dd461af (diff) |
add and use name_list_cleanup() for cleaning up the string lists
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_utils.h')
-rw-r--r-- | udev_utils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/udev_utils.h b/udev_utils.h index a3fc283203..0a307526b7 100644 --- a/udev_utils.h +++ b/udev_utils.h @@ -45,6 +45,7 @@ extern void remove_trailing_char(char *path, char c); extern void replace_untrusted_chars(char *string); extern int name_list_add(struct list_head *name_list, const char *name, int sort); extern int name_list_key_add(struct list_head *name_list, const char *key, const char *value); +extern void name_list_cleanup(struct list_head *name_list); extern int add_matching_files(struct list_head *name_list, const char *dirname, const char *suffix); extern int pass_env_to_socket(const char *name, const char *devpath, const char *action); extern int run_program(const char *command, const char *subsystem, |