Commit 9643263b authored by Felix Paul Kühne's avatar Felix Paul Kühne

Clean up (with a little help from clang)

parent bb4b4910
......@@ -189,13 +189,8 @@ static int probe_sms(int kernFunc, char *servMatch, int dataType, void *data)
memset(&inputStructure, 0, sizeof(union motion_data));
memset(outputStructure, 0, sizeof(union motion_data));
#ifdef __LP64__
result = IOConnectCallStructMethod(dataPort, kernFunc, &inputStructure,
structureInputSize, outputStructure, &structureOutputSize );
#else
result = IOConnectMethodStructureIStructureO(dataPort, kernFunc, structureInputSize,
&structureOutputSize, &inputStructure, outputStructure);
#endif
IOServiceClose(dataPort);
......
......@@ -27,6 +27,8 @@
#define LEFTMARGIN 18
#define RIGHTMARGIN 18
static NSMenu *o_keys_menu = nil;
@interface VLCConfigControl : NSView
{
module_config_t *p_item;
......@@ -51,7 +53,6 @@
- (void)applyChanges;
- (int)labelSize;
- (void) alignWithXPosition:(int)i_xPos;
static NSMenu *o_keys_menu = nil;
+ (int)calcVerticalMargin: (int)i_curItem lastItem:(int)i_lastItem;
......
......@@ -315,7 +315,7 @@ create_toolbar_item( NSString * o_itemIdent, NSString * o_name, NSString * o_des
NSMenuItem *mi;
if( p_item->ppsz_list_text != NULL )
mi = [[NSMenuItem alloc] initWithTitle: _NS( p_item->ppsz_list_text[i] ) action:NULL keyEquivalent: @""];
else if( p_item->ppsz_list[i] && p_item->ppsz_list[i] == "" )
else if( p_item->ppsz_list[i] && strcmp(p_item->ppsz_list[i],"") == 0 )
{
[[object menu] addItem: [NSMenuItem separatorItem]];
continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment