src/cline.c

changeset 102
665b60727a89
parent 101
0cb645809b1a
child 103
31fa205db85a
--- a/src/cline.c	Sat Jul 04 11:10:51 2026 +0200
+++ b/src/cline.c	Sat Jul 04 12:09:37 2026 +0200
@@ -81,13 +81,13 @@
     "\n");
 }
 
-static int exit_with_version(settings* settings) {
+static int exit_with_version(settings *settings) {
   printf("cline - Version: " VERSION "\n");
   destroy_settings(settings);
   return 0;
 }
 
-static int exit_with_help(settings* settings, int code) {
+static int exit_with_help(settings *settings, int code) {
   printf("cline - Version: " VERSION "\n");
   printHelpText();
   destroy_settings(settings);
@@ -121,10 +121,10 @@
   settings->excludeDirs->free_item = free;
 }
 
-static const char * sepline_double = "===============================================================================\n";
-static const char * sepline_single = "-------------------------------------------------------------------------------\n";
+static const char *sepline_double = "===============================================================================\n";
+static const char *sepline_single = "-------------------------------------------------------------------------------\n";
 
-int main(int argc, char** argv) {
+int main(int argc, char **argv) {
 
   /* Settings */
   settings *settings = new_settings();
@@ -139,8 +139,8 @@
     fprintf(stderr, "Memory allocation failed.\n");
     return 1;
   }
-  char* includeSuffix = NULL;
-  char* excludeSuffix = NULL;
+  const char *includeSuffix = NULL;
+  const char *excludeSuffix = NULL;
   int checked = 0;
 
   for (int t = 1 ; t < argc ; t++) {
@@ -309,8 +309,8 @@
   normalize_excluded_dirs(settings);
 
   /* Scan directories */
-  scanresult* result = new_scanresult(settings);
-  const char* result_type = settings->count_chars ? "chars" : "lines";
+  scanresult *result = new_scanresult(settings);
+  const char *result_type = settings->count_chars ? "chars" : "lines";
   bool has_output = false;
   unsigned total = 0;
   if (directories->count == 0) {

mercurial