[xiph-cvs] cvs commit: icecast/src yp.c

Ed oddsock at xiph.org
Tue Feb 4 18:04:54 PST 2003



oddsock     03/02/04 21:04:54

  Modified:    src      yp.c
  Log:
  if there is an error on touching, then reset the sid which will force another add

Revision  Changes    Path
1.3       +3 -0      icecast/src/yp.c

Index: yp.c
===================================================================
RCS file: /usr/local/cvsroot/icecast/src/yp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- yp.c	2 Feb 2003 16:48:15 -0000	1.2
+++ yp.c	5 Feb 2003 02:04:54 -0000	1.3
@@ -160,6 +160,9 @@
             else {
             /* specify URL to get */
                 ret = yp_submit_url(curl_con, source->ypdata[i]->yp_url, url, "yp_touch");
+                if (!ret) {
+                    source->ypdata[i]->sid[0] = '\000';
+                }
             }
            if (url) {
                free(url);

<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