Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Doc for examples icomms.
[simgrid.git] / doc / gtut-files / 05-globals.c
index 6b9d974..a21233d 100644 (file)
@@ -1,3 +1,10 @@
+/* Copyright (c) 2006, 2007, 2009, 2010. The SimGrid Team.
+ * All rights reserved.                                                     */
+
+/* This program is free software; you can redistribute it and/or modify it
+  * under the terms of the license (GNU LGPL) which comes with this package. */
+
+#include <stdio.h>
 #include <gras.h>
 
 typedef struct {
@@ -32,7 +39,7 @@ int server(int argc, char *argv[]) {
   
   gras_init(&argc,argv);
 
-  globals=gras_userdata_new(server_data_t*);
+  globals=gras_userdata_new(server_data_t);
   globals->killed=0;
 
   gras_msgtype_declare("hello", NULL);