Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-20 21:01:14 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-08-20 21:01:14 (GMT)
commit0408ea189d3ed0134b2fb9bc0ae54c75b9d950cd (patch)
tree065139fd24475a837b8acad417edd6d84f1ae462 /bin
parentf5f31627d3c850f4bf4682a472daacbb6fb6280a (diff)
Fix errors in native factory
Diffstat (limited to 'bin')
-rw-r--r--bin/sugar-native-factory.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/sugar-native-factory.c b/bin/sugar-native-factory.c
index a04cd94..e4913dd 100644
--- a/bin/sugar-native-factory.c
+++ b/bin/sugar-native-factory.c
@@ -29,6 +29,7 @@ THE SOFTWARE.
#include <errno.h>
#include <sys/wait.h>
#include <dbus/dbus.h>
+#include <unistd.h>
char* prog;
@@ -76,7 +77,7 @@ remove_pid(pid_t pid)
{
int i;
for (i=0; i<pidc; i++)
- if (pidv[i]=pid)
+ if (pidv[i]==pid)
break;
if (i==pidc)
{
@@ -293,7 +294,7 @@ int main(int argc, char **argv)
}
if (result != DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER)
{
- fprintf(stderr, "%: could not become primary owner of %s\n", prog, service);
+ fprintf(stderr, "%s: could not become primary owner of %s\n", prog, service);
exit(1);
}
@@ -304,4 +305,6 @@ int main(int argc, char **argv)
while (dbus_connection_read_write_dispatch(connection, -1))
;
+
+ _exit(0);
}