main.c (202844) | main.c (207113) |
---|---|
1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <beat@chruetertee.ch> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Beat G�tzi 7 * ---------------------------------------------------------------------------- 8 */ 9 10#include <sys/cdefs.h> | 1/*- 2 * ---------------------------------------------------------------------------- 3 * "THE BEER-WARE LICENSE" (Revision 42): 4 * <beat@chruetertee.ch> wrote this file. As long as you retain this notice you 5 * can do whatever you want with this stuff. If we meet some day, and you think 6 * this stuff is worth it, you can buy me a beer in return. Beat G�tzi 7 * ---------------------------------------------------------------------------- 8 */ 9 10#include <sys/cdefs.h> |
11__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/updating/main.c 202844 2010-01-22 23:32:10Z flz $"); | 11__FBSDID("$FreeBSD: head/usr.sbin/pkg_install/updating/main.c 207113 2010-04-23 11:07:43Z flz $"); |
12 13 14#include <sys/param.h> 15#include <stdio.h> 16#include <errno.h> 17#include <fetch.h> 18#include <limits.h> 19#include <sysexits.h> 20#include <getopt.h> 21 | 12 13 14#include <sys/param.h> 15#include <stdio.h> 16#include <errno.h> 17#include <fetch.h> 18#include <limits.h> 19#include <sysexits.h> 20#include <getopt.h> 21 |
22#include "lib.h" | 22#include <pkg.h> |
23#include "pathnames.h" 24 25typedef struct installedport { 26 struct installedport *next; /* List of installed ports. */ 27 char name[LINE_MAX]; /* Name of the installed port. */ 28} INSTALLEDPORT; 29 30int usage(void); --- 51 unchanged lines hidden (view full) --- 82 83 /* Needed nodes for linked list with installed ports. */ 84 INSTALLEDPORT *head = (INSTALLEDPORT *) NULL; 85 INSTALLEDPORT *curr = (INSTALLEDPORT *) NULL; 86 87 DIR *dir; 88 FILE *fd; 89 | 23#include "pathnames.h" 24 25typedef struct installedport { 26 struct installedport *next; /* List of installed ports. */ 27 char name[LINE_MAX]; /* Name of the installed port. */ 28} INSTALLEDPORT; 29 30int usage(void); --- 51 unchanged lines hidden (view full) --- 82 83 /* Needed nodes for linked list with installed ports. */ 84 INSTALLEDPORT *head = (INSTALLEDPORT *) NULL; 85 INSTALLEDPORT *curr = (INSTALLEDPORT *) NULL; 86 87 DIR *dir; 88 FILE *fd; 89 |
90 pkg_wrap(PKG_INSTALL_VERSION, argv); 91 |
|
90 while ((ch = getopt_long(argc, argv, opts, longopts, NULL)) != -1) { 91 switch (ch) { 92 case 'd': 93 dflag = 1; 94 date = optarg; 95 break; 96 case 'f': 97 updatingfile = optarg; --- 186 unchanged lines hidden --- | 92 while ((ch = getopt_long(argc, argv, opts, longopts, NULL)) != -1) { 93 switch (ch) { 94 case 'd': 95 dflag = 1; 96 date = optarg; 97 break; 98 case 'f': 99 updatingfile = optarg; --- 186 unchanged lines hidden --- |