[hackers] [surf] reformating || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Thu, 10 Sep 2009 07:23:33 +0000 (UTC)

changeset: 87:51123efd2015
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Thu Sep 10 09:25:08 2009 +0200
files: surf.c
description:
reformating

diff -r dc063baab6bf -r 51123efd2015 surf.c
--- a/surf.c Thu Sep 10 08:57:47 2009 +0200
+++ b/surf.c Thu Sep 10 09:25:08 2009 +0200
@@ -90,7 +90,7 @@
 static void loadfile(Client *c, const gchar *f);
 static void loaduri(Client *c, const Arg *arg);
 static void navigate(Client *c, const Arg *arg);
-static Client *newclient();
+static Client *newclient(void);
 static WebKitWebView *newwindow(WebKitWebView *v, WebKitWebFrame *f, Client *c);
 static void pasteurl(GtkClipboard *clipboard, const gchar *text, gpointer d);
 static GdkFilterReturn processx(GdkXEvent *xevent, GdkEvent *event, gpointer d);
@@ -99,9 +99,9 @@
 static void progresschange(WebKitWebView *view, gint p, Client *c);
 static void request(SoupSession *s, SoupMessage *m, Client *c);
 static void reload(Client *c, const Arg *arg);
-static void rereadcookies();
+static void rereadcookies(void);
 static void setcookie(char *name, char *val, char *dom, char *path, long exp);
-static void setup();
+static void setup(void);
 static void titlechange(WebKitWebView* view, WebKitWebFrame* frame,
                 const gchar* title, Client *c);
 static void scroll(Client *c, const Arg *arg);
@@ -111,7 +111,7 @@
 static void showurl(Client *c, const Arg *arg);
 static void stop(Client *c, const Arg *arg);
 static void titlechange(WebKitWebView* view, WebKitWebFrame* frame, const gchar* title, Client *c);
-static void usage();
+static void usage(void);
 static void update(Client *c);
 static void zoom(Client *c, const Arg *arg);
 
@@ -541,7 +541,7 @@
 }
 
 void
-rereadcookies() {
+rereadcookies(void) {
         const gchar *filename, *home;
 
         home = g_get_home_dir();
@@ -567,7 +567,7 @@
 }
 
 void
-setup() {
+setup(void) {
         dpy = GDK_DISPLAY();
         session = webkit_get_default_session();
         urlprop = XInternAtom(dpy, "_SURF_URL", False);
@@ -627,7 +627,7 @@
 }
 
 void
-usage() {
+usage(void) {
         fputs("surf - simple browser\n", stderr);
         die("usage: surf [-e] [-x] [uri]\n");
 }
Received on Thu Sep 10 2009 - 07:23:33 UTC

This archive was generated by hypermail 2.2.0 : Thu Sep 10 2009 - 07:24:05 UTC