summaryrefslogtreecommitdiff
path: root/libmailutils/locus/locus.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmailutils/locus/locus.c')
-rw-r--r--libmailutils/locus/locus.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libmailutils/locus/locus.c b/libmailutils/locus/locus.c
index 49648fdc5..cfa808034 100644
--- a/libmailutils/locus/locus.c
+++ b/libmailutils/locus/locus.c
@@ -36,16 +36,10 @@ mu_locus_point_set_file (struct mu_locus_point *pt, const char *filename)
return 0;
}
-int
-mu_locus_point_init (struct mu_locus_point *pt, const char *filename)
+void
+mu_locus_point_init (struct mu_locus_point *pt)
{
- int rc = mu_locus_point_set_file (pt, filename);
- if (rc == 0)
- {
- pt->mu_line = 0;
- pt->mu_col = 0;
- }
- return rc;
+ memset (pt, 0, sizeof *pt);
}
void
@@ -68,6 +62,12 @@ mu_locus_point_copy (struct mu_locus_point *dest,
return rc;
}
+void
+mu_locus_range_init (struct mu_locus_range *dest)
+{
+ memset (dest, 0, sizeof *dest);
+}
+
int
mu_locus_range_copy (struct mu_locus_range *dest,
struct mu_locus_range const *src)

Return to:

Send suggestions and report system problems to the System administrator.