]> git.tdb.fi Git - libs/core.git/blobdiff - source/utils.cpp
Drop copyright and license notices from files
[libs/core.git] / source / utils.cpp
index 8ce5bf327edb21b76a1f5874cb3dcb28c3a314f5..eee51cc57d28a6b365fb2e7da57fedeb358c32e5 100644 (file)
@@ -1,9 +1,3 @@
-/* $Id$
-
-This file is part of libmspio
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
 #include "base.h"
 #include "utils.h"
 
@@ -12,9 +6,9 @@ namespace IO {
 
 unsigned read_all(Base &obj, char *buf, unsigned size)
 {
-       unsigned pos=0;
+       unsigned pos = 0;
        while(pos<size)
-               pos+=obj.read(buf+pos, size-pos);
+               pos += obj.read(buf+pos, size-pos);
 
        return pos;
 }