]> rtime.felk.cvut.cz Git - mf6xx.git/commitdiff
Minor changes.
authorRostislav Lisovy <lisovy@gmail.com>
Sat, 23 Apr 2011 13:09:41 +0000 (15:09 +0200)
committerRostislav Lisovy <lisovy@gmail.com>
Sat, 23 Apr 2011 13:09:41 +0000 (15:09 +0200)
src/qemu/README.txt
src/qemu_qt_gui/untitled/socket_thread.cpp

index b4960ee1b8fd60251c34773e2a4401d45b49f431..8f95d6ad89f554bd50ff62202e8024b29234f33e 100644 (file)
@@ -30,4 +30,4 @@ If you don't want to install Qemu, your binary is in "i386-softmmu" directory
 3 -- How to run Qemu with MF624
 ===============================
 * Add "-device mf624" to Qemu command line parameters.
-  E. g. "i386-softmmu$ ./qemu  -device mf624-hda ..//debian.qcow --boot c"
+  E. g. "i386-softmmu$ ./qemu  -device mf624 -hda ..//debian.qcow --boot c"
index 8feb160d39595eab14be88f30c448f68a4a38173..a1e3f74b4d5e9958ef98f3cc6a52cfbf42ae0fe3 100644 (file)
@@ -53,14 +53,14 @@ void socket_thread::run()
        sockfd = ::socket(AF_INET, SOCK_STREAM, 0);
        if (sockfd < 0) {
                perror("socket()");
-               exit(0);
+               ::exit(0);
        }
 
        //server = gethostbyname(argv[1]);
        server = ::gethostbyname("127.0.0.1");
        if (server == NULL) {
                perror("gethostbyname()");
-               exit(0);
+               ::exit(0);
        }
 
        memset((char *) &serv_addr, '\0', sizeof(serv_addr));
@@ -171,9 +171,9 @@ void socket_thread::run()
                ((MainWindow*) parent())->ui->dac6->setValue(mf624_io_status.DA6);
                ((MainWindow*) parent())->ui->dac7->setValue(mf624_io_status.DA7);
 
-               //printf("%s\n", buffer);
+               //printf("%s\n", read_buffer);
        }
-       //close(sockfd);
+       close(sockfd);
 
        exec();
 }