Skip to content

Commit e01c8cb

Browse files
Jason Kingarekinath
Jason King
authored andcommitted
Make ebox_tpl_clone take a const arg
1 parent 3bc9472 commit e01c8cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ebox.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ ebox_tpl_part_guid(const struct ebox_tpl_part *part)
563563
}
564564

565565
struct ebox_tpl *
566-
ebox_tpl_clone(struct ebox_tpl *tpl)
566+
ebox_tpl_clone(const struct ebox_tpl *tpl)
567567
{
568568
struct ebox_tpl *ntpl;
569569
struct ebox_tpl_config *pconfig, *nconfig, *config;

ebox.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void ebox_tpl_free(struct ebox_tpl *tpl);
8181
uint ebox_tpl_version(const struct ebox_tpl *tpl);
8282

8383
/* Recursively clones the entire ebox_tpl, all configurations and parts. */
84-
struct ebox_tpl *ebox_tpl_clone(struct ebox_tpl *tpl);
84+
struct ebox_tpl *ebox_tpl_clone(const struct ebox_tpl *tpl);
8585

8686
void ebox_tpl_add_config(struct ebox_tpl *tpl, struct ebox_tpl_config *config);
8787
void ebox_tpl_remove_config(struct ebox_tpl *tpl, struct ebox_tpl_config *config);

0 commit comments

Comments
 (0)