diff options
author | rbuj <[email protected]> | 2019-08-16 15:01:22 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-21 11:08:11 -0400 |
commit | b670c37a3dd9083418eca389f3452a15f70e0f22 (patch) | |
tree | f6e35fcc6cb957e0f4fcbf78657df8f966b3f06b /capplets/time-admin/src/main.c | |
parent | 797375812a94286b74397818e20e0c94791ab4d7 (diff) | |
download | mate-control-center-b670c37a3dd9083418eca389f3452a15f70e0f22.tar.bz2 mate-control-center-b670c37a3dd9083418eca389f3452a15f70e0f22.tar.xz |
time-admin: Remove unreachable code
Diffstat (limited to 'capplets/time-admin/src/main.c')
-rw-r--r-- | capplets/time-admin/src/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/capplets/time-admin/src/main.c b/capplets/time-admin/src/main.c index 4a18c5fd..f635c31c 100644 --- a/capplets/time-admin/src/main.c +++ b/capplets/time-admin/src/main.c @@ -175,7 +175,7 @@ static int RecordPid(void) fd = open(LOCKFILE,O_WRONLY|O_CREAT|O_TRUNC,0777); if(fd < 0) { - MessageReport(_("open file"),_("Create pid file failed"),ERROR); + ErrorMessage (_("open file"), _("Create pid file failed")); return -1; } chmod(LOCKFILE,0777); @@ -184,7 +184,7 @@ static int RecordPid(void) Length = write(fd,WriteBuf,strlen(WriteBuf)); if(Length <= 0 ) { - MessageReport(_("write file"),_("write pid file failed"),ERROR); + ErrorMessage (_("write file"), _("write pid file failed")); return -1; } close(fd); @@ -218,12 +218,12 @@ static gboolean ProcessRuning(void) fd = open(LOCKFILE,O_RDONLY); if(fd < 0) { - MessageReport(_("open file"),_("open pid file failed"),ERROR); + ErrorMessage (_("open file"), _("open pid file failed")); return TRUE; } if(read(fd,ReadBuf,sizeof(ReadBuf)) <= 0) { - MessageReport(_("read file"),_("read pid file failed"),ERROR); + ErrorMessage (_("read file"), _("read pid file failed")); goto ERROREXIT; } pid = atoi(ReadBuf); @@ -249,7 +249,7 @@ static gboolean InitDbusProxy(TimeAdmin *ta) ta->Connection = g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, &error); if(ta->Connection == NULL) { - MessageReport(_("g_bus_get_sync"),error->message,ERROR); + ErrorMessage (_("g_bus_get_sync"), error->message); goto EXIT; } ta->proxy = g_dbus_proxy_new_sync (ta->Connection, @@ -262,7 +262,7 @@ static gboolean InitDbusProxy(TimeAdmin *ta) &error); if(ta->proxy == NULL) { - MessageReport(_("g_bus_proxy_new"),error->message,ERROR); + ErrorMessage (_("g_bus_proxy_new"), error->message); goto EXIT; } |