From: Andrew Tridgell Date: Mon, 12 Jul 2004 13:22:26 +0000 (+0000) Subject: r1465: always do a full C prototype, even if its only (void). X-Git-Tag: samba-misc-tags/initial-v4-0-unstable~12322 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=6724932810772a10e7e51d2f6f2b106c02eafb73;ds=sidebyside r1465: always do a full C prototype, even if its only (void). 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" --- diff --git a/source/gtk/tools/gwcrontab.c b/source/gtk/tools/gwcrontab.c index aef9c15b52a..ba7d2bbcd44 100644 --- a/source/gtk/tools/gwcrontab.c +++ b/source/gtk/tools/gwcrontab.c @@ -31,7 +31,7 @@ GtkWidget *entry_repeat_weekly; GtkWidget *entry_repeat_monthly; GtkWidget *delete; -void update_joblist() +void update_joblist(void) { TALLOC_CTX *mem_ctx = talloc_init("update_joblist"); NTSTATUS status; diff --git a/source/gtk/tools/gwsam.c b/source/gtk/tools/gwsam.c index 9df9698ba9c..a8cf3f2a455 100644 --- a/source/gtk/tools/gwsam.c +++ b/source/gtk/tools/gwsam.c @@ -27,13 +27,13 @@ struct dcerpc_pipe *sam_pipe = NULL; struct policy_handle domain_handle; GtkWidget *mainwin; -void update_grouplist() +void update_grouplist(void) { if(!sam_pipe) return; //FIXME } -void update_userlist() +void update_userlist(void) { NTSTATUS status; struct samr_EnumDomainUsers r;