changeset 55:78a4062bed62

misc: use day by default
author David Demelier <markand@malikania.fr>
date Mon, 21 Dec 2020 20:56:39 +0100
parents 425a88f0877c
children d33f34888af8
files page-new.c paster.1.in paster.sh
diffstat 3 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/page-new.c	Mon Dec 21 20:51:17 2020 +0100
+++ b/page-new.c	Mon Dec 21 20:56:39 2020 +0100
@@ -121,7 +121,8 @@
 		.title          = estrdup("Untitled"),
 		.language       = estrdup("nohighlight"),
 		.code           = estrdup(""),
-		.visible        = true
+		.visible        = true,
+		.duration       = PASTE_DURATION_DAY
 	};
 
 	for (size_t i = 0; i < r->fieldsz; ++i) {
--- a/paster.1.in	Mon Dec 21 20:51:17 2020 +0100
+++ b/paster.1.in	Mon Dec 21 20:56:39 2020 +0100
@@ -68,7 +68,7 @@
 .Dq "nohighlight" .
 .It Fl d Ar duration
 Sets the paste lifetime, defaults to
-.Dq "month" .
+.Dq "day" .
 .It Fl t Ar title
 Sets a title to the paste, defaults to
 .Dq "Untitled" .
--- a/paster.sh	Mon Dec 21 20:51:17 2020 +0100
+++ b/paster.sh	Mon Dec 21 20:56:39 2020 +0100
@@ -19,7 +19,7 @@
 author="Anonymous"
 language="nohighlight"
 title="Untitled"
-duration="month"
+duration="day"
 public=0
 verbose=0