comparison dpp_common.h @ 4:b7d63c5499e7

Remove warnings in dpp
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Fri, 25 Dec 2015 16:00:52 +0900
parents b15128ab0324
children a04eccfc69ae
comparison
equal deleted inserted replaced
3:6bf69a0f2e24 4:b7d63c5499e7
1 #ifndef _DPP_COMMON_H_ 1 #ifndef _DPP_COMMON_H_
2 #define _DPP_COMMON_H_ 2 #define _DPP_COMMON_H_
3 #define NULL (0) 3 #define NULL (0)
4
5 #include<stdio.h>
6 #include<stdlib.h>
4 7
5 typedef struct phils { 8 typedef struct phils {
6 int id; 9 int id;
7 struct fork *right_fork; 10 struct fork *right_fork;
8 struct fork *left_fork; 11 struct fork *left_fork;
9 struct phils *right; 12 struct phils *right;
10 struct phils *left; 13 struct phils *left;
11 __code (*next)(struct phils *, struct task *); 14 __code (*next)(struct phils *);
12 } Phils, *PhilsPtr; 15 } Phils, *PhilsPtr;
13 16
14 typedef struct fork { 17 typedef struct fork {
15 int id; 18 int id;
16 struct phils *owner; 19 struct phils *owner;