[xiph-cvs] cvs commit: libshout/examples example.c

Brendan brendan at xiph.org
Sun Jan 12 13:51:49 PST 2003



brendan     03/01/12 16:51:49

  Modified:    examples example.c
  Log:
  Inconsistent spacing

Revision  Changes    Path
1.4       +16 -16    libshout/examples/example.c

Index: example.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/examples/example.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- example.c	29 Dec 2002 08:48:08 -0000	1.3
+++ example.c	12 Jan 2003 21:51:49 -0000	1.4
@@ -22,15 +22,15 @@
                 return 1;
         }
 
-    if (shout_set_protocol(shout, SHOUT_PROTOCOL_HTTP) != SHOUTERR_SUCCESS) {
-        printf("Error setting protocol: %s\n", shout_get_error(shout));
-        return 1;
-    }
+	if (shout_set_protocol(shout, SHOUT_PROTOCOL_HTTP) != SHOUTERR_SUCCESS) {
+		printf("Error setting protocol: %s\n", shout_get_error(shout));
+		return 1;
+	}
 
-    if (shout_set_port(shout, 8000) != SHOUTERR_SUCCESS) {
-        printf("Error setting port: %s\n", shout_get_error(shout));
-        return 1;
-    }
+	if (shout_set_port(shout, 8000) != SHOUTERR_SUCCESS) {
+		printf("Error setting port: %s\n", shout_get_error(shout));
+		return 1;
+	}
 
         if (shout_set_password(shout, "hackme") != SHOUTERR_SUCCESS) {
                 printf("Error setting password: %s\n", shout_get_error(shout));
@@ -41,15 +41,15 @@
                 return 1;
         }
 
-    if (shout_set_user(shout, "source") != SHOUTERR_SUCCESS) {
-        printf("Error setting user: %s\n", shout_get_error(shout));
-        return 1;
-    }
+	if (shout_set_user(shout, "source") != SHOUTERR_SUCCESS) {
+		printf("Error setting user: %s\n", shout_get_error(shout));
+		return 1;
+	}
 
-    if (shout_set_format(shout, SHOUT_FORMAT_VORBIS) != SHOUTERR_SUCCESS) {
-        printf("Error setting user: %s\n", shout_get_error(shout));
-        return 1;
-    }
+	if (shout_set_format(shout, SHOUT_FORMAT_VORBIS) != SHOUTERR_SUCCESS) {
+		printf("Error setting user: %s\n", shout_get_error(shout));
+		return 1;
+	}
 
         if (shout_open(shout) == SHOUTERR_SUCCESS) {
                 printf("Connected to server...\n");

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list