fix for 32-bit
[awesomized/libmemcached] / test / lib / ForkAndExec.hpp
index ad7b415150c38ec04b911c749263ec21cc7be194..66d93f8ee9ccefd77a656ed150d14e3bccf0311c 100644 (file)
@@ -1,3 +1,18 @@
+/*
+    +--------------------------------------------------------------------+
+    | libmemcached - C/C++ Client Library for memcached                  |
+    +--------------------------------------------------------------------+
+    | Redistribution and use in source and binary forms, with or without |
+    | modification, are permitted under the terms of the BSD license.    |
+    | You should have received a copy of the license in a bundled file   |
+    | named LICENSE; in case you did not receive a copy you can review   |
+    | the terms online at: https://opensource.org/licenses/BSD-3-Clause  |
+    +--------------------------------------------------------------------+
+    | Copyright (c) 2006-2014 Brian Aker   https://datadifferential.com/ |
+    | Copyright (c) 2020 Michael Wallner   <mike@php.net>                |
+    +--------------------------------------------------------------------+
+*/
+
 #pragma once
 
 #include "common.hpp"
@@ -10,13 +25,12 @@ public:
   ~ForkAndExec();
 
   ForkAndExec(const ForkAndExec &) = delete;
-  ForkAndExec &operator = (const ForkAndExec &) = delete;
+  ForkAndExec &operator=(const ForkAndExec &) = delete;
   ForkAndExec(ForkAndExec &&) = default;
-  ForkAndExec &operator = (ForkAndExec &&) = default;
+  ForkAndExec &operator=(ForkAndExec &&) = default;
 
-  [[nodiscard]]
-  int createPipe();
-  pid_t operator () ();
+  [[nodiscard]] int createPipe();
+  pid_t operator()();
 
 private:
   int ready[2], pipes[2];