From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nsfone.fone.net ([206.168.68.96]) by speech.braille.uwo.ca with esmtp (Exim 3.36 #1 (Debian)) id 1Febk9-0003Sh-00 for ; Fri, 12 May 2006 13:48:01 -0400 Received: from mail2.fone.net (mail2.fone.net [206.168.68.165]) by nsfone.fone.net (8.13.6+Sun/8.12.10) with ESMTP id k4CHj2Op021612 for ; Fri, 12 May 2006 11:45:02 -0600 (MDT) Received: from grandmasfury (ftcw30.ftc.fone.net [207.174.192.34]) by mail2.fone.net (8.13.6+Sun/8.12.10) with SMTP id k4CHk1qu004797 for ; Fri, 12 May 2006 11:46:10 -0600 (MDT) Message-ID: <002801c675ec$1f8d1870$6501a8c0@grandmasfury> From: "Tyler Littlefield" To: "Speakup is a screen review system for Linux." Subject: can someone look at this? sorry if its o-t Date: Fri, 12 May 2006 11:47:17 -0600 Organization: Dataplus MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.3.0.1, Antispam-Data: 2006.5.12.95112 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.8rc1 X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.8rc1 Precedence: list Reply-To: Tyler Littlefield , "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 17:48:02 -0000 Hay list, I know this is off-topic, but it says fdata is out of scope, can someone = look at it and tell me what is going on? Thanks, #include #include #include #include #include #include #include struct data{ int alt; char *data; char *usern; }; using namespace std; int main() { openlog("Dataplus client", LOG_PID, 0); switch ( fork() ) { case -1: syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), "There was an error starting = the dataplus client."); return 1; case 0: break; return 0; } if ( setsid() < 0 ) { syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_ERR), "There was an error starting = the dataplus client."); return 2; } syslog(LOG_MAKEPRI(LOG_DAEMON, LOG_NOTICE), "Dataplus client ready."); data usr; usr.alt=3D322; usr.data=3D"linux"; usr.usern=3D"tyler/root"; dfile=3Dfopen("darg", "w"); int i; for (i =3D 0; i++; i < 12) { printf(dfile, usr); fflush(dfile); } fclose(dfile); return 0; }