shithub: riscv

Download patch

ref: 39ed950d6fb8ac2660e9e30052f4d838a3599e53
parent: 5b4882a669f0c07881989f1d35b452cebf3817e2
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sun Sep 4 23:39:18 EDT 2011

mothra: cleanup

--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -795,16 +795,6 @@
 /*
  * select the file at the given url
  */
-void seturl(Url *url, char *urlname, char *base){
-	strncpy(url->reltext, urlname, sizeof(url->reltext));
-	strcpy(url->basename, base);
-	url->fullname[0] = 0;
-	url->charset[0] = 0;
-	url->tag[0] = 0;
-	url->type = 0;
-	url->map = 0;
-}
-
 void selurl(char *urlname){
 	static Url url;
 	seturl(&url, urlname, current?
@@ -812,6 +802,15 @@
 		defurl.fullname);
 	selection=&url;
 	message("selected: %s", selection->fullname);
+}
+void seturl(Url *url, char *urlname, char *base){
+	strncpy(url->reltext, urlname, sizeof(url->reltext));
+	strncpy(url->basename, base, sizeof(url->basename));
+	url->fullname[0] = 0;
+	url->charset[0] = 0;
+	url->tag[0] = 0;
+	url->type = 0;
+	url->map = 0;
 }
 Url *copyurl(Url *u){
 	Url *v;
--- a/sys/src/cmd/mothra/version.c
+++ /dev/null
@@ -1,1 +1,0 @@
-char version[]="Sep-5-03:25:57-CET-2011";
--