Changeset 237


Ignore:
Timestamp:
Jul 11, 2009, 10:29:20 PM (16 years ago)
Author:
katerina
Message:

Eliminate C99-style comments (ticket #154).

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/docs/Changelog

    r235 r237  
    112.5.7:
     2        * eliminate C99-style comments (problem reported by
     3          venkat)
     4        * fix bad variable name for AC_CACHE_CHECK
    25        * fix potential deadlock when external programm is called
    36          (problem reported by A. Dunkel)
  • TabularUnified trunk/src/cutest_sh_unix.c

    r171 r237  
    1111void Test_dnmalloc (CuTest *tc) {
    1212
    13   const int nalloc = 64 /* original dnmalloc 1.0-beta5 fails fo >= 45 */;
     13  const int nalloc = 64 /* original dnmalloc 1.0-beta5 fails for >= 45 */;
    1414  int j, i;
    1515  int sum;
     
    9090      CuAssertPtrNotNull(tc, area[j]);
    9191#ifndef USE_SYSTEM_MALLOC
    92       // CuAssertIntEquals (tc, malloc_count, (i_malloc + (j+1)));
     92      /* CuAssertIntEquals (tc, malloc_count, (i_malloc + (j+1))); */
    9393#endif
    9494      memset(area[j], (unsigned char) ('a'+1), (j+1) * 1024);
  • TabularUnified trunk/src/dnmalloc.c

    r228 r237  
    29192919       }
    29202920#ifdef DNMALLOC_CHECKS
    2921        // This should never occur but if it does, we'd like to know
     2921       /* This should never occur but if it does, we'd like to know */
    29222922       if (!ci) {
    29232923         fprintf (stderr,
     
    46614661  }
    46624662  else {
    4663     // Initialize dnmalloc
     4663    /* Initialize dnmalloc */
    46644664    dnmalloc_init();
    46654665    malloc_init_state(get_malloc_state());
     
    49024902
    49034903    /* Note the extra SIZE_SZ overhead */
    4904     //newsize = (nb + offset + SIZE_SZ + pagemask) & ~pagemask;
     4904    /* newsize = (nb + offset + SIZE_SZ + pagemask) & ~pagemask; */
    49054905    newsize = (nb + offset + pagemask) & ~pagemask;
    49064906
  • TabularUnified trunk/src/samhain_hide.c

    r96 r237  
    581581#if SH_KERNEL_NUMERIC >= 132628
    582582  status = (*old_getdents64)(fd, dirp, count);
    583   // status = my_real_getdents64(fd, dirp, count);
     583  /* status = my_real_getdents64(fd, dirp, count); */
    584584#else
    585585  status = (*old_getdents64)(fd, dirp, count);
  • TabularUnified trunk/src/sh_log_check.c

    r203 r237  
    11051105  printf("%2d: short badpath, expect -4\n", status);
    11061106  status = sh_add_watch("SYSLOG:/var/log/messages");
    1107   // status = sh_add_watch("SYSLOG:/var/log/dpkg.log.1");
     1107  /* status = sh_add_watch("SYSLOG:/var/log/dpkg.log.1"); */
    11081108  printf("%2d: short path ok, expect 0\n", status);
    11091109
     
    11211121    fprintf(stderr, "error in fdopen!\n"); exit(EXIT_FAILURE); }
    11221122
    1123   for (i = 0; i <  80; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 0
    1124   for (i = 0; i < 118; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 1
    1125   for (i = 0; i < 119; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 2
    1126   for (i = 0; i < 120; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 3
    1127   for (i = 0; i < 121; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 4
     1123  for (i = 0; i <  80; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 0 */
     1124  for (i = 0; i < 118; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 1 */
     1125  for (i = 0; i < 119; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 2 */
     1126  for (i = 0; i < 120; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 3 */
     1127  for (i = 0; i < 121; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 4 */
    11281128  for (i = 0; i < 238; ++i) { fputc ('a', fp); } fputc ('\n', fp);
    11291129  for (i = 0; i < 239; ++i) { fputc ('a', fp); } fputc ('\n', fp);
  • TabularUnified trunk/src/sh_portcheck.c

    r235 r237  
    18041804  */
    18051805
    1806   // sh_portchk_add_required ("127.0.0.1 : nlockmgr/tcp, 5308/tcp, nfs/tcp");
     1806  /* sh_portchk_add_required ("127.0.0.1 : nlockmgr/tcp, 5308/tcp, nfs/tcp"); */
    18071807
    18081808  while (argc > 1 && argv[1][0] == '-')
  • TabularUnified trunk/src/sh_string.c

    r215 r237  
    656656  CuAssertPtrNotNull(tc, fp);
    657657
    658   for (i = 0; i <  80; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 0
    659   for (i = 0; i < 118; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 1
    660   for (i = 0; i < 119; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 2
    661   for (i = 0; i < 120; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 3
    662   for (i = 0; i < 121; ++i) { fputc ('a', fp); } fputc ('\n', fp); // 4
     658  for (i = 0; i <  80; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 0 */
     659  for (i = 0; i < 118; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 1 */
     660  for (i = 0; i < 119; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 2 */
     661  for (i = 0; i < 120; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 3 */
     662  for (i = 0; i < 121; ++i) { fputc ('a', fp); } fputc ('\n', fp); /* 4 */
    663663  for (i = 0; i < 238; ++i) { fputc ('a', fp); } fputc ('\n', fp);
    664664  for (i = 0; i < 239; ++i) { fputc ('a', fp); } fputc ('\n', fp);
  • TabularUnified trunk/src/slib.c

    r227 r237  
    20292029            {
    20302030              mincore(f_map, fbuf.st_size, vec);
    2031               // imax = fbuf.st_size/page_size;
     2031              /* imax = fbuf.st_size/page_size; */
    20322032              for (i = 0; i <= vec_size; ++i)
    20332033                {
Note: See TracChangeset for help on using the changeset viewer.