A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix build on 32 bit systems
[simgrid.git]
/
examples
/
java
/
app
/
bittorrent
/
MessageTask.java
diff --git
a/examples/java/app/bittorrent/MessageTask.java
b/examples/java/app/bittorrent/MessageTask.java
index
4ff0204
..
c8b2227
100644
(file)
--- a/
examples/java/app/bittorrent/MessageTask.java
+++ b/
examples/java/app/bittorrent/MessageTask.java
@@
-1,4
+1,4
@@
-/* Copyright (c) 2006-201
4, 2016
. The SimGrid Team.
+/* Copyright (c) 2006-201
8
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-24,7
+24,7
@@
public class MessageTask extends Task {
protected String issuerHostname;
protected String mailbox;
protected int peerId;
protected String issuerHostname;
protected String mailbox;
protected int peerId;
- protected char
bitfield[]
;
+ protected char
[] bitfield
;
protected int index;
protected int blockIndex;
protected int blockLength;
protected int index;
protected int blockIndex;
protected int blockLength;
@@
-39,7
+39,7
@@
public class MessageTask extends Task {
}
// builds a new bitfield message
}
// builds a new bitfield message
- public MessageTask(Type type, String issuerHostname, String mailbox, int peerId, char
bitfield[]
) {
+ public MessageTask(Type type, String issuerHostname, String mailbox, int peerId, char
[] bitfield
) {
this(type,issuerHostname,mailbox,peerId,-1,false,-1,-1);
this.bitfield = bitfield;
}
this(type,issuerHostname,mailbox,peerId,-1,false,-1,-1);
this.bitfield = bitfield;
}