]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/berrno.h
Win32 fix -- remove debug O_NONBLOCK code
[bacula/bacula] / bacula / src / lib / berrno.h
index 1879ded31ab475d1bb688564ac118293cbe76163..e6b6923872de2fed476e176fcf9dc90f49f74a18 100644 (file)
  * A more generalized way of handling errno that works with Unix, Windows,
  *  and with Bacula bpipes.
  *
- * It works by picking up errno and creating a memory pool buffer 
+ * It works by picking up errno and creating a memory pool buffer
  *  for editing the message. strerror() does the actual editing, and
  *  it is thread safe.
  *
  * If bit 29 in berrno_ is set then it is a Win32 error, and we
  *  must to a GetLastError() to get the error code for formatting.
  * If bit 29 in berrno_ is not set, then it is a Unix errno.
+ *
  */
 class berrno : public SMARTALLOC {
    POOLMEM *buf_;
@@ -54,14 +55,14 @@ public:
 };
 
 /* Constructor */
-inline berrno::berrno(int pool) 
+inline berrno::berrno(int pool)
 {
    berrno_ = errno;
    buf_ = get_pool_memory(pool);
 }
-   
+
 inline berrno::~berrno()
-{   
+{
    free_pool_memory(buf_);
 }