summaryrefslogtreecommitdiffstats
path: root/avahi-sharp/Utility.cs
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-25 03:10:32 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-25 03:11:20 +0200
commit908e491f7d55209acfbb2595ab1ef5b24502d641 (patch)
treee3922a11db074e6a99045797cf9c1c69fe23f738 /avahi-sharp/Utility.cs
parent2b2844b10d7b7e5c97f9c667d664d9418bb7769a (diff)
get rid of a lot of old svn cruft
Diffstat (limited to 'avahi-sharp/Utility.cs')
-rw-r--r--avahi-sharp/Utility.cs8
1 files changed, 3 insertions, 5 deletions
diff --git a/avahi-sharp/Utility.cs b/avahi-sharp/Utility.cs
index 9081b01..a1d0a66 100644
--- a/avahi-sharp/Utility.cs
+++ b/avahi-sharp/Utility.cs
@@ -1,5 +1,3 @@
-/* $Id$ */
-
/***
This file is part of avahi.
@@ -45,7 +43,7 @@ namespace Avahi
{
if (ptr == IntPtr.Zero)
return null;
-
+
int len = strlen (ptr);
byte[] bytes = new byte[len];
Marshal.Copy (ptr, bytes, 0, len);
@@ -56,7 +54,7 @@ namespace Avahi
{
if (ptr == IntPtr.Zero)
return null;
-
+
string ret = PtrToString (ptr);
Free (ptr);
return ret;
@@ -100,7 +98,7 @@ namespace Avahi
public static IPAddress PtrToAddress (IntPtr ptr)
{
IPAddress address = null;
-
+
if (ptr != IntPtr.Zero) {
IntPtr buf = Stdlib.malloc (256);
IntPtr addrPtr = avahi_address_snprint (buf, 256, ptr);