[haiku-commits] r40064 - haiku/trunk/src/system/boot/loader

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 2 Jan 2011 15:13:21 +0100 (CET)

Author: bonefish
Date: 2011-01-02 15:13:21 +0100 (Sun, 02 Jan 2011)
New Revision: 40064
Changeset: http://dev.haiku-os.org/changeset/40064

Modified:
   haiku/trunk/src/system/boot/loader/FileMapDisk.cpp
Log:
* Removed my copyright. I had nothing to do with this file.
* FileMapDisk::RegisterFileMapBootItem(): Commented out unreachable code
  (CID 10367).
* Automatic whitespace cleanup.


Modified: haiku/trunk/src/system/boot/loader/FileMapDisk.cpp
===================================================================
--- haiku/trunk/src/system/boot/loader/FileMapDisk.cpp  2011-01-02 05:53:32 UTC 
(rev 40063)
+++ haiku/trunk/src/system/boot/loader/FileMapDisk.cpp  2011-01-02 14:13:21 UTC 
(rev 40064)
@@ -1,8 +1,9 @@
 /*
- * Copyright 2005, Ingo Weinhold <bonefish@xxxxxxxxxxxxxxx>.
+ * Copyright 2005, ?.
  * All rights reserved. Distributed under the terms of the MIT License.
  */
 
+
 #include <boot/FileMapDisk.h>
 #include <boot_item.h>
 
@@ -48,7 +49,7 @@
        fSocket = new(nothrow) UDPSocket;
        if (!fSocket)
                return B_NO_MEMORY;
-       
+
        status_t error = fSocket->Bind(INADDR_ANY, 6666);
        if (error != B_OK)
                return error;
@@ -112,7 +113,7 @@
 
        snprintf(nameBuffer, bufferSize, prefix);
        if (bufferSize > strlen(prefix) && fNode)
-               return fNode->GetName(nameBuffer + strlen(prefix), 
+               return fNode->GetName(nameBuffer + strlen(prefix),
                        bufferSize - strlen(prefix));
 
        return B_OK;
@@ -174,6 +175,7 @@
 FileMapDisk::RegisterFileMapBootItem()
 {
        return B_ERROR;
+#if 0
        struct file_map_boot_item *item;
        item = (struct file_map_boot_item *)malloc(sizeof(struct 
file_map_boot_item));
        item->num_runs = FMAP_MAX_RUNS;
@@ -184,6 +186,5 @@
 //     err = add_boot_item("file_map_disk", item, sizeof(struct 
file_map_boot_item));
        err = B_ERROR;
        return err;
+#endif
 }
-
-


Other related posts: