aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test1.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-26 23:06:19 +0800
committerDan Winship <danw@src.gnome.org>2000-04-26 23:06:19 +0800
commit75a19475c9dc429e17019133eb8da387e96d04af (patch)
tree7c4f3ddedf7d53625248e79cfb260b572da5470d /tests/test1.c
parent85eafe5cb2cf0d6c5aeff0cd97840be7e3911b46 (diff)
downloadgsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.tar
gsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.tar.gz
gsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.tar.bz2
gsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.tar.lz
gsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.tar.xz
gsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.tar.zst
gsoc2013-evolution-75a19475c9dc429e17019133eb8da387e96d04af.zip
Update for the camel changes.
* tests: Update for the camel changes. * Makefile.am (SUBDIRS): Remove tests. They aren't terribly useful/interesting any more for the most part, and they frequently don't compile. svn path=/trunk/; revision=2636
Diffstat (limited to 'tests/test1.c')
-rw-r--r--tests/test1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test1.c b/tests/test1.c
index 8e70dfc792..f59439e9a7 100644
--- a/tests/test1.c
+++ b/tests/test1.c
@@ -7,7 +7,6 @@
#include "camel-multipart.h"
#include "camel-stream.h"
#include "camel-stream-fs.h"
-#include "camel-stream-data-wrapper.h"
#include "camel.h"
int
@@ -30,7 +29,7 @@ main (int argc, char**argv)
} else {
if (argc == 2) {
attachment_stream = camel_stream_fs_new_with_name
- (argv[1], CAMEL_STREAM_FS_READ);
+ (argv[1], O_RDONLY, 0600);
if (attachment_stream == NULL) {
fprintf (stderr, "Cannot open `%s'\n",
argv[1]);
@@ -93,7 +92,7 @@ main (int argc, char**argv)
gtk_object_unref (GTK_OBJECT (stream_wrapper));*/
- attachment_wrapper = CAMEL_DATA_WRAPPER (camel_simple_data_wrapper_new ());
+ attachment_wrapper = camel_data_wrapper_new ();
camel_data_wrapper_construct_from_stream (attachment_wrapper,
attachment_stream);
@@ -110,7 +109,7 @@ main (int argc, char**argv)
camel_medium_set_content_object (CAMEL_MEDIUM (message), CAMEL_DATA_WRAPPER (multipart));
- stream = camel_stream_fs_new_with_name ("mail1.test", CAMEL_STREAM_FS_WRITE );
+ stream = camel_stream_fs_new_with_name ("mail1.test", O_WRONLY, 0600);
if (!stream) {
printf ("could not open output file");
exit(2);