r1465: always do a full C prototype, even if its only (void).
authorAndrew Tridgell <tridge@samba.org>
Mon, 12 Jul 2004 13:22:26 +0000 (13:22 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:57:33 +0000 (12:57 -0500)
this declaration:

int foo();

is *not* the same as this one:

int foo(void);

the first means "I don't know what arguments it takes". The second
means "it takes no arguments"

source/gtk/tools/gwcrontab.c
source/gtk/tools/gwsam.c

index aef9c15b52a076bf8ed86cbe4c9f2aa27234d1fa..ba7d2bbcd44083e0ac3a6f3326708bfae0475285 100644 (file)
@@ -31,7 +31,7 @@ GtkWidget *entry_repeat_weekly;
 GtkWidget *entry_repeat_monthly;
 GtkWidget *delete;
 
 GtkWidget *entry_repeat_monthly;
 GtkWidget *delete;
 
-void update_joblist()
+void update_joblist(void)
 {
        TALLOC_CTX *mem_ctx = talloc_init("update_joblist");
        NTSTATUS status;
 {
        TALLOC_CTX *mem_ctx = talloc_init("update_joblist");
        NTSTATUS status;
index 9df9698ba9c9bafbe6121c79ab2f3addbf5d8183..a8cf3f2a455a1908d3deaaa7011321f7856c6c90 100644 (file)
@@ -27,13 +27,13 @@ struct dcerpc_pipe *sam_pipe = NULL;
 struct policy_handle domain_handle;
 GtkWidget *mainwin;
 
 struct policy_handle domain_handle;
 GtkWidget *mainwin;
 
-void update_grouplist()
+void update_grouplist(void)
 {
        if(!sam_pipe) return;
        //FIXME
 }
 
 {
        if(!sam_pipe) return;
        //FIXME
 }
 
-void update_userlist()
+void update_userlist(void)
 {
        NTSTATUS status;
        struct samr_EnumDomainUsers r;
 {
        NTSTATUS status;
        struct samr_EnumDomainUsers r;