Skip to content
Snippets Groups Projects
Commit 2ce3b1fc authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

const.

parent 13bd253f
No related branches found
No related tags found
2 merge requests!136Master,!117Engine exchange strays
...@@ -309,8 +309,8 @@ void proxy_parts_exch2(struct proxy *p) { ...@@ -309,8 +309,8 @@ void proxy_parts_exch2(struct proxy *p) {
* @param N The number of parts. * @param N The number of parts.
*/ */
void proxy_parts_load(struct proxy *p, struct part *parts, struct xpart *xparts, void proxy_parts_load(struct proxy *p, const struct part *parts,
int N) { const struct xpart *xparts, int N) {
/* Is there enough space in the buffer? */ /* Is there enough space in the buffer? */
if (p->nr_parts_out + N > p->size_parts_out) { if (p->nr_parts_out + N > p->size_parts_out) {
...@@ -348,7 +348,7 @@ void proxy_parts_load(struct proxy *p, struct part *parts, struct xpart *xparts, ...@@ -348,7 +348,7 @@ void proxy_parts_load(struct proxy *p, struct part *parts, struct xpart *xparts,
* @param N The number of parts. * @param N The number of parts.
*/ */
void proxy_gparts_load(struct proxy *p, struct gpart *gparts, int N) { void proxy_gparts_load(struct proxy *p, const struct gpart *gparts, int N) {
/* Is there enough space in the buffer? */ /* Is there enough space in the buffer? */
if (p->nr_gparts_out + N > p->size_gparts_out) { if (p->nr_gparts_out + N > p->size_gparts_out) {
......
...@@ -76,9 +76,9 @@ struct proxy { ...@@ -76,9 +76,9 @@ struct proxy {
/* Function prototypes. */ /* Function prototypes. */
void proxy_init(struct proxy *p, int mynodeID, int nodeID); void proxy_init(struct proxy *p, int mynodeID, int nodeID);
void proxy_parts_load(struct proxy *p, struct part *parts, struct xpart *xparts, void proxy_parts_load(struct proxy *p, const struct part *parts,
int N); const struct xpart *xparts, int N);
void proxy_gparts_load(struct proxy *p, struct gpart *gparts, int N); void proxy_gparts_load(struct proxy *p, const struct gpart *gparts, int N);
void proxy_parts_exch1(struct proxy *p); void proxy_parts_exch1(struct proxy *p);
void proxy_parts_exch2(struct proxy *p); void proxy_parts_exch2(struct proxy *p);
void proxy_addcell_in(struct proxy *p, struct cell *c); void proxy_addcell_in(struct proxy *p, struct cell *c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment