mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] stringlist: string_list_contains can use a const string
@ 2014-11-19 13:34 Jan Luebbe
  2014-11-20 13:36 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Luebbe @ 2014-11-19 13:34 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
---
 include/stringlist.h | 2 +-
 lib/stringlist.c     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/stringlist.h b/include/stringlist.h
index 127998cb6e21..2e2addf98f19 100644
--- a/include/stringlist.h
+++ b/include/stringlist.h
@@ -11,7 +11,7 @@ struct string_list {
 int string_list_add(struct string_list *sl, char *str);
 int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...);
 int string_list_add_sorted(struct string_list *sl, char *str);
-int string_list_contains(struct string_list *sl, char *str);
+int string_list_contains(struct string_list *sl, const char *str);
 void string_list_print_by_column(struct string_list *sl);
 
 static inline void string_list_init(struct string_list *sl)
diff --git a/lib/stringlist.c b/lib/stringlist.c
index cc84944f73b3..57801b3bb04d 100644
--- a/lib/stringlist.c
+++ b/lib/stringlist.c
@@ -60,7 +60,7 @@ int string_list_add_sorted(struct string_list *sl, char *str)
 	return 0;
 }
 
-int string_list_contains(struct string_list *sl, char *str)
+int string_list_contains(struct string_list *sl, const char *str)
 {
 	struct string_list *entry;
 
-- 
2.1.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] stringlist: string_list_contains can use a const string
  2014-11-19 13:34 [PATCH] stringlist: string_list_contains can use a const string Jan Luebbe
@ 2014-11-20 13:36 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-11-20 13:36 UTC (permalink / raw)
  To: Jan Luebbe; +Cc: barebox

On Wed, Nov 19, 2014 at 02:34:28PM +0100, Jan Luebbe wrote:
> Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
> ---
>  include/stringlist.h | 2 +-
>  lib/stringlist.c     | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/include/stringlist.h b/include/stringlist.h
> index 127998cb6e21..2e2addf98f19 100644
> --- a/include/stringlist.h
> +++ b/include/stringlist.h
> @@ -11,7 +11,7 @@ struct string_list {
>  int string_list_add(struct string_list *sl, char *str);
>  int string_list_add_asprintf(struct string_list *sl, const char *fmt, ...);
>  int string_list_add_sorted(struct string_list *sl, char *str);
> -int string_list_contains(struct string_list *sl, char *str);
> +int string_list_contains(struct string_list *sl, const char *str);
>  void string_list_print_by_column(struct string_list *sl);
>  
>  static inline void string_list_init(struct string_list *sl)
> diff --git a/lib/stringlist.c b/lib/stringlist.c
> index cc84944f73b3..57801b3bb04d 100644
> --- a/lib/stringlist.c
> +++ b/lib/stringlist.c
> @@ -60,7 +60,7 @@ int string_list_add_sorted(struct string_list *sl, char *str)
>  	return 0;
>  }
>  
> -int string_list_contains(struct string_list *sl, char *str)
> +int string_list_contains(struct string_list *sl, const char *str)
>  {
>  	struct string_list *entry;
>  
> -- 
> 2.1.1
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-20 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19 13:34 [PATCH] stringlist: string_list_contains can use a const string Jan Luebbe
2014-11-20 13:36 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox