[or-cvs] some cosmetic fixes

Roger Dingledine arma at seul.org
Thu Apr 29 02:52:51 UTC 2004


Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/common

Modified Files:
	util.c util.h 
Log Message:
some cosmetic fixes


Index: util.c
===================================================================
RCS file: /home/or/cvsroot/src/common/util.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- util.c	28 Apr 2004 21:14:56 -0000	1.92
+++ util.c	29 Apr 2004 02:52:49 -0000	1.93
@@ -1075,11 +1075,13 @@
   if (!(file = fdopen(fd, "w"))) {
     log(LOG_WARN, "Couldn't fdopen %s for writing: %s", tempname,
         strerror(errno));
-    close(fd); return -1;
+    close(fd);
+    return -1;
   }
   if (fputs(str,file) == EOF) {
     log(LOG_WARN, "Error writing to %s: %s", tempname, strerror(errno));
-    fclose(file); return -1;
+    fclose(file);
+    return -1;
   }
   fclose(file);
   if (rename(tempname, fname)) {

Index: util.h
===================================================================
RCS file: /home/or/cvsroot/src/common/util.h,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- util.h	28 Apr 2004 21:17:42 -0000	1.62
+++ util.h	29 Apr 2004 02:52:49 -0000	1.63
@@ -77,9 +77,6 @@
 void tor_strlower(char *s);
 
 #ifdef UNALIGNED_INT_ACCESS_OK
-/* XXX Not actually used yet, but would probably be faster on non-sun
- * hardare.
- */
 #define get_uint16(cp) (*(uint16_t*)(cp))
 #define get_uint32(cp) (*(uint32_t*)(cp))
 #define set_uint16(cp,v) do { *(uint16_t*)(cp) = (v); } while (0)



More information about the tor-commits mailing list