From: Johan Bilien Date: Wed, 15 Oct 2008 15:45:23 +0000 (+0000) Subject: fixed a few copy-paste errors X-Git-Tag: GOBJECT_INTROSPECTION_0_6_0~141 X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=a0318a561581b27f64e0876df2c5f14a7ace57b9;p=gnome.gobject-introspection fixed a few copy-paste errors 2008-10-15 Johan Bilien * tests/scanner/annotation.c: fixed a few copy-paste errors svn path=/trunk/; revision=708 --- diff --git a/ChangeLog b/ChangeLog index 0ec9153..dff9e69 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-15 Johan Bilien + + * tests/scanner/annotation.c: fixed a few copy-paste errors + 2008-10-14 Johan Bilien Bug 556323 – transfer-ownership is wrong for functions returning const diff --git a/tests/scanner/annotation.c b/tests/scanner/annotation.c index 4ef97b3..2917ea1 100644 --- a/tests/scanner/annotation.c +++ b/tests/scanner/annotation.c @@ -38,7 +38,7 @@ annotation_object_method (AnnotationObject *object) * Return value: an int */ gint -annotation_object_in (AnnotationObject *object, int *outarg) +annotation_object_out (AnnotationObject *object, int *outarg) { *outarg = 2; return 1; @@ -48,16 +48,15 @@ annotation_object_in (AnnotationObject *object, int *outarg) * annotation_object_in: * @object: a #GObject * - * This is a test for out arguments + * This is a test for in arguments * * @outarg: (in): This is an argument test * Return value: an int */ gint -annotation_object_out (AnnotationObject *object, int *outarg) +annotation_object_in (AnnotationObject *object, int *inarg) { - *outarg = 2; - return 1; + return *inarg; }