]> code.citadel.org Git - citadel.git/blobdiff - citadel/config.c
Fix warnings all over citserver; handle function replies; remove unused code.
[citadel.git] / citadel / config.c
index 9d731d3e7fee51a8bfe67588c50b485f9fab649a..bc9a4128e9bd0b9c8cc5c0793797cee82d5a8bf1 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * Read and write the citadel.config file
  *
  * Copyright (c) 1987-2009 by the citadel.org team
@@ -181,6 +179,9 @@ void put_config(void)
                perror(file_citadel_config);
        else {
                rv = fwrite((char *) &config, sizeof(struct config), 1, cfp);
+               if (rv == -1)
+                       syslog(LOG_EMERG, "Failed to write: %s [%s]\n", 
+                              file_citadel_config, strerror(errno));
                fclose(cfp);
        }
 }