* corrigé
This commit is contained in:
parent
8731d0b4ae
commit
13bb480903
1 changed files with 3 additions and 13 deletions
|
@ -1,14 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
typedef struct MsgSpaceListElem msgSpaceListElem;
|
||||
|
||||
struct MsgSpaceListElem{
|
||||
void *id;
|
||||
int ownerpid; //valeur du pid que lon stoke dan la liste
|
||||
msgSpaceListElem *next; //adresse du prochain elemen de la liste
|
||||
|
||||
};
|
||||
#include "libnazgul.h"
|
||||
|
||||
/* ajout dans la liste */
|
||||
|
||||
|
@ -17,7 +7,7 @@ msgSpaceListElem *addBegining( msgSpaceListElem*list,int ownerpid){
|
|||
if( (unSpacemsgListElem=(msgSpaceListElem *)malloc(sizeof(msgSpaceListElem) ) )==NULL){
|
||||
perror("ereur dallocation de memoire");
|
||||
exit(1);}
|
||||
unSpacemsgListElem->ownerpid = ownerpid;
|
||||
unSpacemsgListElem->ownerPid = ownerpid;
|
||||
return(unSpacemsgListElem);
|
||||
|
||||
}
|
||||
|
@ -26,7 +16,7 @@ msgSpaceListElem *addBegining( msgSpaceListElem*list,int ownerpid){
|
|||
|
||||
|
||||
|
||||
int main(int argc,char **argv){
|
||||
int test(int argc,char **argv){
|
||||
msgSpaceListElem *ma_liste;
|
||||
msgSpaceListElem *listMove;
|
||||
ma_liste=NULL;
|
||||
|
|
Loading…
Reference in a new issue