From 7e13e5fc62b81ffc5728006ddb560478ac3f1576 Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Wed, 13 Mar 2013 01:44:50 +0900 Subject: Tizen 2.1 base --- test/mailbox3.rl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/mailbox3.rl') diff --git a/test/mailbox3.rl b/test/mailbox3.rl index e8089bb..8039f80 100644 --- a/test/mailbox3.rl +++ b/test/mailbox3.rl @@ -129,15 +129,15 @@ using std::endl; #define BUFSIZE 8192 -void test( char *buf ) +void test( const char *buf ) { int cs, len = strlen( buf ); - char *preserve = 0, *ws = 0; + const char *preserve = 0, *ws = 0; int hlen = 0; %% write init; - char *p = buf; - char *pe = p + len; + const char *p = buf; + const char *pe = p + len; %% write exec; if ( cs < mailbox_first_final ) { @@ -150,7 +150,7 @@ int main() { test( "From user@host.com Wed Nov 28 13:30:05 2001\n" - "From: \"Adrian D. Thurston\" \n" + "From: \"Adrian D. Thurston\" \n" "Subject: the squirrel has landed\n" "\n" "Message goes here. \n" @@ -168,7 +168,7 @@ int main() test( "From user@host.com Wed Nov 28 13:30:05 2001\n" "To: \"(kill 2)\" some guy \n" - "From: \"Adrian D. Thurston this name is far too long\" \n" + "From: \"Adrian D. Thurston this name is far too long\" \n" "Subject: the squirrel has landed\n" "\n" "From user2@host2.com Wed Nov 28 13:30:05 2001\n" @@ -204,7 +204,7 @@ int main() #ifdef _____OUTPUT_____ ------ FROM - "Adrian D. Thurston" | thurston@cs.queensu.ca + "Adrian D. Thurston" | thurston@complang.org SUBJECT the squirrel has landed ------ -- cgit v1.2.3