some pending cosmetics
authorChristian Thaeter <ct@pipapo.org>
Sun, 7 Oct 2007 07:02:55 +0000 (09:02 +0200)
committerChristian Thaeter <ct@pipapo.org>
Sun, 7 Oct 2007 07:02:55 +0000 (09:02 +0200)
rxpd.c

diff --git a/rxpd.c b/rxpd.c
index bccb96d..92bac94 100644 (file)
--- a/rxpd.c
+++ b/rxpd.c
@@ -101,7 +101,7 @@ rxpd_rule_new (const char* buf)
               size_t len = regerror (err, NULL, ebuf, 256);
               self->string = malloc(len + strlen(buf) + 14);
               if (!self->string) abort();
-              strcpy (self->string, "#ERROR ");
+              strcpy (self->string, "#ERROR: ");
               strcat (self->string, ebuf);
               strcat (self->string, " in '");
               strcat (self->string, buf);
@@ -205,7 +205,7 @@ rxpd_file_load (struct rxpd_file* self)
           if (!rule)
             abort();
 
-          printf("%s\n", rule->string);
+          printf("loaded rule '%s'\n", rule->string);
 
           llist_insert_tail (&self->rules, &rule->node);
         }
@@ -532,8 +532,10 @@ rxpd_connection_parse_cmd (int fd, short event, void* ptr)
     {
       // rulename provided
       self->file = (struct rxpd_file*) psplay_find (&self->base->files, &line[i->sz]);
+
       if (!self->file)
         {
+          // todo create policy?
           self->file = rxpd_file_new (self->base, &line[i->sz]);
           if (!self->file)
             {