Changeset 39


Ignore:
Timestamp:
07/31/05 11:15:03 (19 years ago)
Author:
tim
Message:

small cleanups, added some free() calls.

fixed top-level Makefile to clean properly.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Makefile

    r36 r39  
    4343
    4444clean:
     45        $(MAKE) -C src clean
     46        $(MAKE) -C lib clean
    4547        rm -rf $(BUILD)/*
  • trunk/src/reglookup.c

    r38 r39  
    186186         * routines to replace the Samba code for this.
    187187         */
    188         /*      if(cur != NULL)
    189           free(cur);*/
     188        if(cur != NULL)
     189          free(cur);
    190190      }
    191191    }
     
    237237      }
    238238    }
     239    free(cur_str);
    239240
    240241    if(!found_cur)
     
    273274static void usage(void)
    274275{
    275   fprintf(stderr, "Usage: readreg [-f <PREFIX_FILTER>] [-t <TYPE_FILTER>] "
    276                   "[-v] [-s] <REGISTRY_FILE>\n");
     276  fprintf(stderr, "Usage: readreg [-v] [-s]"
     277          " [-f <PREFIX_FILTER>] [-t <TYPE_FILTER>]"
     278          " <REGISTRY_FILE>\n");
    277279  /* XXX: replace version string with Subversion property? */
    278280  fprintf(stderr, "Version: 0.2\n");
    279   fprintf(stderr, "\n\t-v\t sets verbose mode.");
    280   fprintf(stderr, "\n\t-f\t a simple prefix filter.");
    281   fprintf(stderr, "\n\t-t\t restrict results to a specific type.");
    282   fprintf(stderr, "\n\t-s\t prints security descriptors.");
     281  fprintf(stderr, "Options:\n");
     282  fprintf(stderr, "\t-v\t sets verbose mode.\n");
     283  fprintf(stderr, "\t-s\t prints security descriptors.\n");
     284  fprintf(stderr, "\t-f\t restricts output to elements below this path.\n");
     285  fprintf(stderr, "\t-t\t restrict results to a specific data type.\n");
    283286  fprintf(stderr, "\n");
    284287}
Note: See TracChangeset for help on using the changeset viewer.