Skip to contentSkip to conversation

code style clean up

PATCH New Jin Li 1 participant 1 message Feb 8, 2012

lore
Share & tools
lore

Jin Li

author
#0 lore raw

PATCH 1/1 code style clean up

clean up the code style in ipcshm.h and shmat01.c

---
 testcases/kernel/syscalls/ipc/lib/ipcshm.h    |    5 ++-
 testcases/kernel/syscalls/ipc/shmat/shmat01.c |   46 ++++++++++++------------
 2 files changed, 26 insertions(+), 25 deletions(-)
testcases/kernel/syscalls/ipc/lib/ipcshm.h +3 -2
index bb49dbd..8a70e85 100644
@@ -37,7 +37,7 @@ void setup(void);
 
 #define SHM_RD	0400
 #define SHM_WR	0200
-#define SHM_RW	SHM_RD | SHM_WR
+#define SHM_RW	(SHM_RD | SHM_WR)
 
 #define SHM_SIZE	2048	/* a resonable size for a memory segment */
 #define INT_SIZE	4	/* instead of sizeof(int) */
@@ -51,6 +51,7 @@ void rm_shm(int shm_id);
 void check_root();
 
 int getipckey();
-int getuserid(char*);
+int getuserid(char *);
+void check_functionality(int);
 
 #endif /* ipcshm.h */
testcases/kernel/syscalls/ipc/shmat/shmat01.c +23 -23

117 lines not on this page · raw message

Signature · 13 lines
1.6.3.1


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list