]> Pileus Git - ~andy/ct/commitdiff
Fix build errors
authorAndy Spencer <andy753421@gmail.com>
Tue, 6 Aug 2013 05:21:41 +0000 (05:21 +0000)
committerAndy Spencer <andy753421@gmail.com>
Tue, 6 Aug 2013 05:21:41 +0000 (05:21 +0000)
gallery/html.ct
lib.c

index 20bd065c145d98611177116c5b6aee3c231823f1..bd3edaeb273efbaff94419c0ecf026369df0ea9e 100644 (file)
@@ -72,8 +72,8 @@
                <% for (GList *cur = images; cur; cur = cur->next) { %>
                        <% gchar *img = (gchar *)cur->data; %>
                        <div class="align">
-                               <a class="box" target="content" href="show_small?<%= "%s", img %>">
-                               <img src="thumb/<%= "%s", img %>"></a>
+                               <a class="box" target="content" href="show_small?<%% "%s", img %>">
+                               <img src="thumb/<%% "%s", img %>"></a>
                        </div>
                <% } %>
        </body>
@@ -83,8 +83,8 @@
 <% void frame_show(char *this, char *link, char *image){ %>
 <html> 
        <body style="text-align:center;"> 
-               <a href="<%= "%s?%s", link, image %>">
-                       <img src="<%= "%s/%s", this, image %>">
+               <a href="<%% "%s?%s", link, image %>">
+                       <img src="<%% "%s/%s", this, image %>">
                </a> 
        </body> 
 </html> 
diff --git a/lib.c b/lib.c
index 90e698b40402da58c205115df244b4d20886f972..5aad3ffa484d902a51fd39528ce3efbc6f58d265 100644 (file)
--- a/lib.c
+++ b/lib.c
@@ -73,6 +73,7 @@ void ct_use_escape()
        register_printf_specifier('M', printf_markup, printf_markup_arginfo);
 }
 
+#ifdef TEST
 int main(void)
 {
        ct_use_escape();
@@ -81,3 +82,4 @@ int main(void)
        printf("%M\n", "<Hello, World>");
        return 0;
 }
+#endif