X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fsvec.c;h=381ee324dce1b7ecf82247055a3825ac2b9084db;hb=56de7118d0909425d714457f0cb470d69f069421;hp=4a576d475208119dbe6ad5c0fba6d2d9bb298481;hpb=d295e8e97acae13552a5b220d3fbcff8201064a2;p=openvswitch diff --git a/lib/svec.c b/lib/svec.c index 4a576d47..381ee324 100644 --- a/lib/svec.c +++ b/lib/svec.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010 Nicira Networks. + * Copyright (c) 2008, 2009, 2010, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,7 +24,7 @@ #include "util.h" #include "vlog.h" -VLOG_DEFINE_THIS_MODULE(svec) +VLOG_DEFINE_THIS_MODULE(svec); void svec_init(struct svec *svec) @@ -372,22 +372,6 @@ svec_join(const struct svec *svec, return ds_cstr(&ds); } -/* Breaks 's' into tokens at any character in 'delimiters', and appends each - * token to 'svec'. Empty tokens are not added. */ -void -svec_split(struct svec *svec, const char *s_, const char *delimiters) -{ - char *s = xstrdup(s_); - char *save_ptr = NULL; - char *token; - - for (token = strtok_r(s, delimiters, &save_ptr); token != NULL; - token = strtok_r(NULL, delimiters, &save_ptr)) { - svec_add(svec, token); - } - free(s); -} - const char * svec_back(const struct svec *svec) {