Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165612188
D28957.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
901 B
Referenced Files
None
Subscribers
None
D28957.diff
View Options
Index: bin/cp/cp.c
===================================================================
--- bin/cp/cp.c
+++ bin/cp/cp.c
@@ -85,7 +85,7 @@
PATH_T to = { to.p_path, emptystring, "" };
-int fflag, iflag, lflag, nflag, pflag, sflag, vflag;
+bool fflag, iflag, lflag, nflag, pflag, sflag, vflag;
static int Rflag, rflag;
volatile sig_atomic_t info;
Index: bin/cp/extern.h
===================================================================
--- bin/cp/extern.h
+++ bin/cp/extern.h
@@ -32,6 +32,8 @@
* $FreeBSD$
*/
+#include <stdbool.h>
+
typedef struct {
char *p_end; /* pointer to NULL at end of path */
char *target_end; /* pointer to end of target base */
@@ -39,7 +41,7 @@
} PATH_T;
extern PATH_T to;
-extern int fflag, iflag, lflag, nflag, pflag, sflag, vflag;
+extern bool fflag, iflag, lflag, nflag, pflag, sflag, vflag;
extern volatile sig_atomic_t info;
__BEGIN_DECLS
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 9, 7:36 PM (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36371655
Default Alt Text
D28957.diff (901 B)
Attached To
Mode
D28957: cp: change flags from integers to booleans
Attached
Detach File
Event Timeline
Log In to Comment