git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace all uses of strerror() by ovs_strerror(), for thread safety.
[sliver-openvswitch.git]
/
lib
/
sflow_agent.c
diff --git
a/lib/sflow_agent.c
b/lib/sflow_agent.c
index
f55e6d4
..
817420d
100644
(file)
--- a/
lib/sflow_agent.c
+++ b/
lib/sflow_agent.c
@@
-6,6
+6,7
@@
*/
#include "sflow_api.h"
*/
#include "sflow_api.h"
+#include "util.h"
static void * sflAlloc(SFLAgent *agent, size_t bytes);
static void sflFree(SFLAgent *agent, void *obj);
static void * sflAlloc(SFLAgent *agent, size_t bytes);
static void sflFree(SFLAgent *agent, void *obj);
@@
-469,7
+470,7
@@
void sfl_agent_error(SFLAgent *agent, char *modName, char *msg)
void sfl_agent_sysError(SFLAgent *agent, char *modName, char *msg)
{
char errm[MAX_ERRMSG_LEN];
void sfl_agent_sysError(SFLAgent *agent, char *modName, char *msg)
{
char errm[MAX_ERRMSG_LEN];
- snprintf(errm, sizeof errm, "sfl_agent_sysError: %s: %s (errno = %d - %s)\n", modName, msg, errno, strerror(errno));
+ snprintf(errm, sizeof errm, "sfl_agent_sysError: %s: %s (errno = %d - %s)\n", modName, msg, errno,
ovs_
strerror(errno));
if(agent->errorFn) (*agent->errorFn)(agent->magic, agent, errm);
else {
fprintf(stderr, "%s\n", errm);
if(agent->errorFn) (*agent->errorFn)(agent->magic, agent, errm);
else {
fprintf(stderr, "%s\n", errm);