summaryrefslogtreecommitdiff
path: root/src/analysis/db/items/comment.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-09-29 21:27:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-09-29 21:27:03 (GMT)
commit3a83a06db8ee27eafcd0219d1d26bf2af23737f5 (patch)
tree163ea7fbe1435b9f380e7ae96dfc36d8f16d1d0a /src/analysis/db/items/comment.c
parent55bc8570f25a479b222733c4093f9ae996c9f68e (diff)
Cleaned the DB code a little bit.
Diffstat (limited to 'src/analysis/db/items/comment.c')
-rw-r--r--src/analysis/db/items/comment.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index a231749..39aeb69 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -93,7 +93,7 @@ static void g_db_comment_dispose(GDbComment *);
static void g_db_comment_finalize(GDbComment *);
/* Effectue la comparaison entre deux commentaires enregistrés. */
-static gint g_db_comment_cmp(GDbComment *, GDbComment *, bool);
+static gint g_db_comment_cmp(const GDbComment *, const GDbComment *);
/* Importe la définition d'un commentaire dans un flux réseau. */
static bool g_db_comment_unpack(GDbComment *, packed_buffer *);
@@ -421,9 +421,8 @@ GDbComment *g_db_comment_new_area(const vmpa2t *addr, BufferLineFlags flags, con
/******************************************************************************
* *
-* Paramètres : a = premier élément à analyser. *
-* b = second élément à analyser. *
-* with = précise les horodatages à prendre en compte. *
+* Paramètres : a = premier élément à analyser. *
+* b = second élément à analyser. *
* *
* Description : Effectue la comparaison entre deux commentaires enregistrés. *
* *
@@ -433,7 +432,7 @@ GDbComment *g_db_comment_new_area(const vmpa2t *addr, BufferLineFlags flags, con
* *
******************************************************************************/
-static gint g_db_comment_cmp(GDbComment *a, GDbComment *b, bool with)
+static gint g_db_comment_cmp(const GDbComment *a, const GDbComment *b)
{
gint result; /* Bilan de la comparaison */
char *string_a; /* Texte du commentaire A */
@@ -463,9 +462,6 @@ static gint g_db_comment_cmp(GDbComment *a, GDbComment *b, bool with)
}
- if (result == 0)
- result = G_DB_ITEM_CLASS(g_db_comment_parent_class)->cmp(G_DB_ITEM(a), G_DB_ITEM(b), with);
-
return 0;
}