Jelajahi Sumber

use 4 spaces instead of tabs

George C. Privon 6 bulan lalu
induk
melakukan
52b6454d48
1 mengubah file dengan 10 tambahan dan 10 penghapusan
  1. 10 10
      uuid-generator.c

+ 10 - 10
uuid-generator.c

@@ -8,22 +8,22 @@ int main() {
     /* restrict ourselves to standard IO */
     pledge("stdio", NULL);
 
-	/* allocate space to store a generated UUID, a string representation
+    /* allocate space to store a generated UUID, a string representation
      * and status/error information. */
-	void *myuuid;
-	char *myuuidstr;
-	uint32_t uuidstatus;
-	myuuid = malloc(sizeof(uuid_t));
+    void *myuuid;
+    char *myuuidstr;
+    uint32_t uuidstatus;
+    myuuid = malloc(sizeof(uuid_t));
 
     /* create a UUID (Version 4), convert it to a string representation,
      * and print it out to the screen. */
-	uuid_create(myuuid, &uuidstatus);
-	uuid_to_string(myuuid, &myuuidstr, &uuidstatus);
-	printf("%s\n", myuuidstr);
+    uuid_create(myuuid, &uuidstatus);
+    uuid_to_string(myuuid, &myuuidstr, &uuidstatus);
+    printf("%s\n", myuuidstr);
 
     /* free malloc()'ed memory. */
-	free(myuuid);
-	free(myuuidstr);
+    free(myuuid);
+    free(myuuidstr);
 
 return 0;
 }