]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
dump_util: move into namespace ue2
authorJustin Viiret <justin.viiret@intel.com>
Wed, 29 Mar 2017 04:08:16 +0000 (15:08 +1100)
committerMatthew Barr <matthew.barr@intel.com>
Wed, 26 Apr 2017 05:18:26 +0000 (15:18 +1000)
src/util/dump_util.cpp
src/util/dump_util.h

index 5b961367cc399a86fafc4bb660a372652784e521..782cba7a31efe3a4a9c9954ac99e958b4c3255f8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Intel Corporation
+ * Copyright (c) 2016-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -33,6 +33,8 @@
 
 using namespace std;
 
+namespace ue2 {
+
 FILE *fopen_or_throw(const char *path, const char *mode) {
     FILE *f = fopen(path, mode);
     if (!f) {
@@ -40,3 +42,5 @@ FILE *fopen_or_throw(const char *path, const char *mode) {
     }
     return f;
 }
+
+} // namespace ue2
index 487d2e7c3de33fb627ba7bc7d2a2fc5ccc8da49f..f5ebe94a5d436bfdb63119b5577da7c966c3d654 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016, Intel Corporation
+ * Copyright (c) 2016-2017, Intel Corporation
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
 
 #include <cstdio>
 
+namespace ue2 {
+
 /**
  * Same as fopen(), but on error throws an exception rather than returning NULL.
  */
 FILE *fopen_or_throw(const char *path, const char *mode);
 
+} // namespace ue2
+
 #endif