volumecontrol.app (0.5-3.1) direct (non packaging) changes

Summary

 AppController.m |    2 +-
 main.m          |    8 ++------
 2 files changed, 3 insertions(+), 7 deletions(-)

    
download this patch

Patch contents

--- volumecontrol.app-0.5.orig/AppController.m
+++ volumecontrol.app-0.5/AppController.m
@@ -3,7 +3,7 @@
 #include <AppKit/AppKit.h>
 #include "AppController.h"
 
-#include <linux/soundcard.h>
+#include <sys/soundcard.h>
 #include <sys/ioctl.h>                  /* control device */
 #include <fcntl.h>
 
--- volumecontrol.app-0.5.orig/main.m
+++ volumecontrol.app-0.5/main.m
@@ -1,10 +1,6 @@
 #include <AppKit/AppKit.h>
 
-int main(int argc, char **argv)
+int main(int argc, const char **argv)
 {
-	CREATE_AUTORELEASE_POOL(pool);
-	[NSApplication sharedApplication];
-	[NSApp run];
-	DESTROY(pool);
-	return 0;
+  return NSApplicationMain(argc, argv);
 }