[rtems commit] shell: Fix warnings

Sebastian Huber sebh at rtems.org
Tue Feb 14 07:55:20 UTC 2017


Module:    rtems
Branch:    master
Commit:    5eee7184adda7a412a36b9e093949e5cee54bd56
Changeset: http://git.rtems.org/rtems/commit/?id=5eee7184adda7a412a36b9e093949e5cee54bd56

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb 14 08:46:22 2017 +0100

shell: Fix warnings

---

 cpukit/libmisc/shell/main_ping.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cpukit/libmisc/shell/main_ping.c b/cpukit/libmisc/shell/main_ping.c
index 62b6cdd..558afcb 100644
--- a/cpukit/libmisc/shell/main_ping.c
+++ b/cpukit/libmisc/shell/main_ping.c
@@ -233,8 +233,6 @@ static void usage(void) __dead2;
 #endif
 
 #if __rtems__
-#define _ALIGNBYTES     CPU_ALIGNMENT
-#define _ALIGN(p)       (((uintptr_t)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
 #define CMSG_SPACE(l)   (_ALIGN(sizeof(struct cmsghdr)) + _ALIGN(l))
 #define CMSG_LEN(l)     (_ALIGN(sizeof(struct cmsghdr)) + (l))
 typedef struct



More information about the vc mailing list