Let's update feeds.
authorJiří Filipovič <fila@ics.muni.cz>
Tue, 20 May 2008 13:40:37 +0000 (13:40 +0000)
committerJiří Filipovič <fila@ics.muni.cz>
Tue, 20 May 2008 13:40:37 +0000 (13:40 +0000)
org.glite.jp.primary/src/feed.c
org.glite.jp.primary/src/new_ftp_backend.c

index af91285..3df25dc 100644 (file)
@@ -790,7 +790,7 @@ int glite_jpps_register_feed(
 int glite_jpps_refresh_feed(glite_jp_context_t ctx, char *feed_id,  time_t *expires){
        time(expires); *expires += FEED_TTL;
 
-       glite_jppsbe_refresh_feed(ctx, feed_id, expires);
+       glite_jppsbe_refresh_feed(ctx, feed_id, *expires);
 
        printf("Feed %s has been refreshed.\n", feed_id);
        
index af9ecbc..694cf0f 100644 (file)
@@ -1844,7 +1844,7 @@ int glite_jppsbe_refresh_feed(
        char *stmt = NULL;
        char *e = NULL;
        glite_lbu_TimeToDB(expires, &e);
-       trio_asprintf(&stmt, "update feeds set expires=%s where feedid=%s",
+       trio_asprintf(&stmt, "update feeds set expires=%s where feedid='%s'",
                e, feed_id);
        if (!stmt) {
                 err.code = ENOMEM;