From 613c45be9ab30187f257a910b1a4ec2860fc4dc5 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周二, 31 5月 2016 18:40:39 +0800
Subject: [PATCH] Convert c++ style comments // to c89 style comments /* */

---
 examples/test-tcp/main.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/examples/test-tcp/main.c b/examples/test-tcp/main.c
index f1971c2..c9a043c 100644
--- a/examples/test-tcp/main.c
+++ b/examples/test-tcp/main.c
@@ -67,7 +67,7 @@
 
 int SCPI_Error(scpi_t * context, int_fast16_t err) {
     (void) context;
-    // BEEP
+    /* BEEP */
     fprintf(stderr, "**ERROR: %d, \"%s\"\r\n", (int16_t) err, SCPI_ErrorTranslate(err));
     return 0;
 }
@@ -179,7 +179,7 @@
     int listenfd;
     char smbuffer[10];
 
-    // user_context will be pointer to socket
+    /* user_context will be pointer to socket */
     scpi_context.user_context = NULL;
 
     SCPI_Init(&scpi_context,
@@ -208,14 +208,14 @@
 
         while (1) {
             rc = waitServer(clifd);
-            if (rc < 0) { // failed
+            if (rc < 0) { /* failed */
                 perror("  recv() failed");
                 break;
             }
-            if (rc == 0) { // timeout
+            if (rc == 0) { /* timeout */
                 SCPI_Input(&scpi_context, NULL, 0);
             }
-            if (rc > 0) { // something to read
+            if (rc > 0) { /* something to read */
                 rc = recv(clifd, smbuffer, sizeof (smbuffer), 0);
                 if (rc < 0) {
                     if (errno != EWOULDBLOCK) {

--
Gitblit v1.9.1