mirror of
https://github.com/openvswitch/ovs
synced 2025-10-17 14:28:02 +00:00
ovs-openflowd: Use sset in place of svec.
Also deletes svec_split() since this was the only user.
This commit is contained in:
18
lib/svec.c
18
lib/svec.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, 2009, 2010 Nicira Networks.
|
||||
* Copyright (c) 2008, 2009, 2010, 2011 Nicira Networks.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user