summaryrefslogtreecommitdiff
path: root/japanese/FreeWnn-server/files/patch-Wnn-etc-mkdir.c
blob: 1a0f8c9d76f5564fea728df109e7cdad9bde93a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Index: Wnn/etc/mkdir.c
===================================================================
RCS file: /home/cvs/private/hrs/freewnn/Wnn/etc/mkdir.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -p -r1.1.1.1 -r1.2
--- Wnn/etc/mkdir.c	20 Dec 2008 07:13:30 -0000	1.1.1.1
+++ Wnn/etc/mkdir.c	20 Dec 2008 15:22:40 -0000	1.2
@@ -5,7 +5,7 @@
 /*
  * FreeWnn is a network-extensible Kana-to-Kanji conversion system.
  * This file is part of FreeWnn.
- * 
+ *
  * Copyright Kyoto University Research Institute for Mathematical Sciences
  *                 1987, 1988, 1989, 1990, 1991, 1992
  * Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999
@@ -57,25 +57,24 @@
 #endif /* !WIFEXITED */
 
 int
-mkdir (path, mode)
-     const char *path;
-     mode_t mode;
+mkdir(const char *path,
+      mode_t mode)
 {
-  const char *args[3];
-  int status;
+	const char *args[3];
+	int status;
 
-  if (!path)
-    return -1;
+	if (!path)
+		return -1;
 
-  args[0] = "/bin/mkdir";
-  args[1] = path;
-  args[2] = NULL;
-
-  if (!fork ())
-    execv (args[0], args);
-  else
-    wait (&status);
+	args[0] = "/bin/mkdir";
+	args[1] = path;
+	args[2] = NULL;
+
+	if (!fork())
+		execv(args[0], args);
+	else
+		wait(&status);
 
-  return !(WIFEXITED (status));
+	return !(WIFEXITED(status));
 }
 #endif