Skip to content

Commit

Permalink
Changed macros to not include a trailing semicolon.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksb committed Aug 22, 2007
1 parent bbdffcb commit 48e7ef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/sys/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: process.h,v 1.8 2007/05/23 22:16:05 oliverschmidt Exp $
* @(#)$Id: process.h,v 1.9 2007/08/22 10:49:48 ksb Exp $
*/

/**
Expand Down Expand Up @@ -277,9 +277,9 @@ static PT_THREAD(process_thread_##name(struct pt *process_pt, \
process_data_t data))

#if PROCESS_LOADABLE
#define PROCESS_LOAD(name) const struct process *process_load = &name;
#define PROCESS_LOAD(name) const struct process *process_load = &name
#else /* PROCESS_LOADABLE */
#define PROCESS_LOAD(name)
#define PROCESS_LOAD(name) extern int _dummy
#endif /* PROCESS_LOADABLE */
CLIF extern const struct process *process_load;

Expand All @@ -296,7 +296,7 @@ CLIF extern const struct process *process_load;
#define PROCESS_NOLOAD(name, strname) \
PROCESS_THREAD(name, ev, data); \
struct process name = { NULL, strname, \
process_thread_##name };
process_thread_##name }
/**
* Declare a process.
*
Expand Down
4 changes: 2 additions & 2 deletions core/sys/procinit.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: procinit.h,v 1.1 2006/06/17 22:41:20 adamdunkels Exp $
* @(#)$Id: procinit.h,v 1.2 2007/08/22 10:49:48 ksb Exp $
*/
#ifndef __PROCINIT_H__
#define __PROCINIT_H__
Expand All @@ -37,7 +37,7 @@

#if ! CC_NO_VA_ARGS
#define PROCINIT(...) \
const struct process *procinit[] = {__VA_ARGS__, NULL};
const struct process *procinit[] = {__VA_ARGS__, NULL}
#endif

void procinit_init(void);
Expand Down

0 comments on commit 48e7ef8

Please sign in to comment.