Cleanup
authorPekka Riikonen <priikone@silcnet.org>
Tue, 17 Dec 2002 09:52:36 +0000 (09:52 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 17 Dec 2002 09:52:36 +0000 (09:52 +0000)
lib/silcutil/silcfileutil.c

index 22c6dc9a4d1da1666984c1b95cf30913a312323e..52112ee3903bac053bcdffd982b34faa6e2ff128 100644 (file)
@@ -71,8 +71,7 @@ int silc_file_writefile(const char *filename, const char *buffer,
   flags |= O_BINARY;
 #endif /* O_BINARY */
 
-  if ((fd = open(filename, flags, 0644))
-     == -1) {
+  if ((fd = open(filename, flags, 0644)) == -1) {
     SILC_LOG_ERROR(("Cannot open file %s for writing: %s", filename,
                    strerror(errno)));
     return -1;
@@ -102,8 +101,7 @@ int silc_file_writefile_mode(const char *filename, const char *buffer,
   flags |= O_BINARY;
 #endif /* O_BINARY */
 
-  if ((fd = open(filename, flags, 0644))
-      == -1) {
+  if ((fd = open(filename, flags, 0644)) == -1) {
     SILC_LOG_ERROR(("Cannot open file %s for writing: %s", filename,
                    strerror(errno)));
     return -1;