Diff
Not logged in

Differences From:

File src/tagview.c part of check-in [5b87749575] - Disable tag URLs without sufficient permission, display a message when there are no tags, provide dummy Javascript functions for the tag timeline. by eric on 2008-09-06 13:09:44. Also file src/tagview.c part of check-in [8745d0d579] - Merge tagview branch into mainline by eric on 2008-09-06 13:29:29. [view]

To:

File src/tagview.c part of check-in [3d62a9fb39] - Fix a few C99-isms in the code so that the code will build on older C compilers. by drh on 2008-10-06 11:33:23. [view]

@@ -186,9 +186,9 @@
 ** WEBPAGE: /tagview
 */
 void tagview_page(void){
   char const *zName = 0;
-  int zTcount = 0;
+  int nTag = 0;
   login_check_credentials();
   if( !g.okRead ){
     login_needed();
   }
@@ -222,10 +222,10 @@
       MAX_INT_TAG
     );
     @ <ul>
     while( db_step(&q)==SQLITE_ROW ){
-      zTcount++;
       const char *name = db_column_text(&q, 0);
+      nTag++;
       if( g.okHistory ){
         if( strncmp(name, prefix, preflen)==0 ){
           @ <li><a href=%s(g.zBaseURL)/tagview?name=%s(name+preflen)>
           @ %s(name+preflen)</a>
@@ -245,9 +245,9 @@
       }
       @ </li>
     }
     @ </ul>
-    if( zTcount == 0) {
+    if( nTag == 0) {
       @ There are no relevant tags.
     }
     db_finalize(&q);
   }