]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3899] Fixed the IFACEMGR_ERROR macros bugs
authorFrancis Dupont <fdupont@isc.org>
Sat, 13 Jun 2015 16:33:08 +0000 (18:33 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 13 Jun 2015 16:33:08 +0000 (18:33 +0200)
src/lib/dhcp/iface_mgr_error_handler.h

index c5ef5b401b8aca37bbae3c5ed750d299dfad5ad4..4b1d832ee4888c2e647f0a4689298c1ae23ff8bc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2014, 2015 Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
 /// @param stream stream object holding an error string.
 #define IFACEMGR_ERROR(ex_type, handler, stream) \
 { \
-    std::ostringstream oss__; \
-    oss__ << stream; \
+    std::ostringstream ieoss__; \
+    ieoss__ << stream; \
     if (handler) { \
-        handler(oss__.str()); \
+        handler(ieoss__.str()); \
     } else { \
-        isc_throw(ex_type, oss__); \
+        isc_throw(ex_type, ieoss__.str()); \
     } \
 } \