* corrigé

This commit is contained in:
glenux 2004-02-19 20:57:41 +00:00
parent 8731d0b4ae
commit 13bb480903

View file

@ -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;