diff util.c @ 419:d015ecbd231d

Use C99 style comments, too.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 07:37:36 +0300
parents 14b685cdbd2c
children a9b20b31cae1
line wrap: on
line diff
--- a/util.c	Thu May 24 07:34:37 2012 +0300
+++ b/util.c	Thu May 24 07:37:36 2012 +0300
@@ -89,7 +89,7 @@
             break;
 
         case '½':
-            /* Escape these .. */
+            // Escape these ..
             PUSHCHAR('½');
             PUSHCHAR('½');
             s++;
@@ -557,15 +557,15 @@
     uint8_t hash;
     nn_user_t *user;
 
-    /* Check arguments */
+    // Check arguments
     if (list == NULL || name == NULL)
         return -1;
 
-    /* Check if username is already there */
+    // Check if username is already there
     if (nn_user_find(list, name) != NULL)
         return 1;
 
-    /* No, we'll add it */
+    // No, we'll add it
     if ((user = th_calloc(1, sizeof(nn_user_t))) == NULL)
         return -3;
 
@@ -584,11 +584,11 @@
 {
     uint8_t hash;
 
-    /* Check arguments */
+    // Check arguments
     if (list == NULL || name == NULL)
         return -1;
 
-    /* Check if username is already there */
+    // Check if username is already there
     hash = nn_hash_user(name);
     if (list->buckets[hash] != NULL)
     {
@@ -629,7 +629,7 @@
     if ((user = th_calloc(1, sizeof(nn_user_t))) == NULL)
         return NULL;
 
-    /* Copy relevant data */
+    // Copy relevant data
     user->name = th_strdup(src->name);
     user->lastspoke = src->lastspoke;
     user->joined = src->joined;