Use int8_t instead of char
This commit is contained in:
parent
c591ca3547
commit
4e73c4a229
4 changed files with 4 additions and 5 deletions
|
@ -55,8 +55,7 @@
|
||||||
{
|
{
|
||||||
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
|
OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init];
|
||||||
|
|
||||||
[sock connectToService: [OFString stringWithFormat: @"%u", port]
|
[sock connectToHost: server onPort: port];
|
||||||
onNode: server];
|
|
||||||
[self _startStream];
|
[self _startStream];
|
||||||
|
|
||||||
[pool release];
|
[pool release];
|
||||||
|
|
|
@ -53,5 +53,5 @@
|
||||||
|
|
||||||
- (void)addShow: (OFString*)show;
|
- (void)addShow: (OFString*)show;
|
||||||
- (void)addStatus: (OFString*)status;
|
- (void)addStatus: (OFString*)status;
|
||||||
- (void)addPriority: (char)priority;
|
- (void)addPriority: (int8_t)priority;
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -204,9 +204,9 @@
|
||||||
stringValue: status]];
|
stringValue: status]];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)addPriority: (char)priority
|
- (void)addPriority: (int8_t)priority
|
||||||
{
|
{
|
||||||
OFString* prio = [OFString stringWithFormat: @"%d", priority];
|
OFString* prio = [OFString stringWithFormat: @"%" @PRId8, priority];
|
||||||
[self addChild: [OFXMLElement elementWithName: @"priority"
|
[self addChild: [OFXMLElement elementWithName: @"priority"
|
||||||
stringValue: prio]];
|
stringValue: prio]];
|
||||||
}
|
}
|
||||||
|
|
BIN
XMPPStanza.o
BIN
XMPPStanza.o
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue