summaryrefslogtreecommitdiff
path: root/src/ipcpd/shim-udp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipcpd/shim-udp/main.c')
-rw-r--r--src/ipcpd/shim-udp/main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipcpd/shim-udp/main.c b/src/ipcpd/shim-udp/main.c
index 1fb12dc0..45620ee9 100644
--- a/src/ipcpd/shim-udp/main.c
+++ b/src/ipcpd/shim-udp/main.c
@@ -291,9 +291,10 @@ int main (int argc, char * argv[])
/* argument 3: instance id */
struct sigaction sig_act;
- /* FIXME: clean up argument checks */
- if (argc != 4)
- LOG_ERR("Wrong arguments passed.");
+ if (ipcp_arg_check(argc, argv)) {
+ LOG_ERR("Wrong arguments.");
+ exit(1);
+ }
/* store the process id of the irmd */
irmd_pid = atoi(argv[1]);